Home › Forums › WoodMart support forum › Query Product Catalogue
Query Product Catalogue
- This topic has 5 replies, 2 voices, and was last updated 4 years, 1 month ago by
Artem Temos.
-
AuthorPosts
-
January 11, 2021 at 10:26 am #257331
tahir.hassaanParticipantHi,
I want to query the woodmart product catalog, a feature of your theme, from the function file of the theme for further customization using wp-query.
Can you pls ask your developer to share an example with me? So I can develop my understanding of the data structure you guys are using in the product catalog.
In the query, I will be needing, product image, product name, & product description with a link in the description, and there will be only two product categories.
Pls see the attachment as a refernece, I am querying woo commerce products from the function file in there, now need to have similar results using the theme product catalog feature.
Attachments:
You must be logged in to view attached files.January 11, 2021 at 12:38 pm #257391
Artem TemosKeymasterHello,
This functionality is provided by the WooCommerce plugin and our theme doesn’t affect it. We suggest you refer to the plugin’s documentation or contact their support for help. Sorry, but we don’t have instructions for such code customization.
Kind Regards
January 11, 2021 at 2:31 pm #257440
tahir.hassaanParticipantSo you are saying that, if I create a project, “not a product”, using theme features, and set it to a category, I can’t query it from a theme function PHP file using wp-query to do any customization?
Sorry, I miss interpreted earlier, I was referring to the project feature of the theme. I miss quoted it as a product feature, my mistake for the confusion.
I tried the documentation but was not able to find the one about Project features.
The link to a demo project is attached, so you could have an idea of what I am trying to say.
January 11, 2021 at 3:37 pm #257441
Artem TemosKeymasterHello,
If you want to display any post type in WordPress using PHP code then you need to use WordPress core
WP_Query
functionality. You can find more information with examples in the WordPress dev documentation https://developer.wordpress.org/reference/classes/wp_query/Regards
January 11, 2021 at 4:15 pm #257466
tahir.hassaanParticipantok, so these projects of your themes are the same as those of WP posts? You are not using any sort of different data structure for them then, is this what you are trying to say, dear?
January 12, 2021 at 7:01 am #257553
Artem TemosKeymasterYes, we are using a custom post type feature for our portfolio. It is not a different sort of data structure.
Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register