Home Forums WoodMart support forum Query Product Catalogue

Query Product Catalogue

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #257331

    tahir.hassaan
    Participant

    Hi,

    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.
    #257391

    Artem Temos
    Keymaster

    Hello,

    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

    #257440

    tahir.hassaan
    Participant

    So 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.

    #257441

    Artem Temos
    Keymaster

    Hello,

    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

    #257466

    tahir.hassaan
    Participant

    ok, 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?

    #257553

    Artem Temos
    Keymaster

    Yes, we are using a custom post type feature for our portfolio. It is not a different sort of data structure.

    Regards

Viewing 6 posts - 1 through 6 (of 6 total)