• Resolved Eric3005

    (@eric3005)


    Hello
    I would like to display products sorted according to the terms id of my custom taxonomy ‘product_cat’
    What is the argument orderby to use?
    I tried orderby = term_id but it does not work

    Thanks for your help!
    Eric

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello Eric

    This question does not apply to the plugin.

    Where have you modified the code? Try it in the file where the generated shortcode [woof_products]

    Thread Starter Eric3005

    (@eric3005)

    Hello!
    I don’t modified code.

    I use the shortcode [woof_products per_page=100 columns=4 is_ajax=0 orderby=product_cat order=ASC] in my shop template (archive-product.php) for displaying products.

    When i use “orderby=product_cat” my products are displaying in order of the taxonomy term, but in alphabetical order. I would like the products are displaying with term ID order

    Is it possible with args in the shortcode ?

    Hello

    Shortcode [woof_products] has no this attributes(orderby , order )!

    Shortcode [woof_products] has next options:
    per_page: products per page
    columns: how many products per row. Usually it is: 2,3 or 4. It depends of your theme ability/functionality and not from the WOOF!
    is_ajax: very power option. You can set it to 1 and your filter generated by [woof] will start works in AJAX mode!
    taxonomies you can define taxonomy-condition there. Do not forget set the same condition in [woof]. Example: [woof is_ajax=1 taxonomies=product_cat:9,12+locations:30,31]
    behavior only one value: ‘recent’. Example: [woof_products behavior=’recent’ per_page=12 columns=3]
    custom_tpl – path to self made template if its nesesary. Example: themes/twentytwelve/woo_tpl_1.php
    tpl_index – index of cutom extension which is template
    get_args_only – value 1 or 0, default is 0. Possibility get assembled array of arguments for any purposes. WP_Query request in this case not done …

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display products orderby taxonomy term id’ is closed to new replies.