Home Forums WoodMart support forum sort by doesnt work

sort by doesnt work

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #639954

    vt
    Participant

    Hello
    i have this shortcode but the orderby doesnt seem to work no matter what i try in there either ids or anything.I want the categories to be listed in the order i put it

    #640080

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    To change the order of categories, Navigate to Products > Categories, then click, hold, and drag the category using this button to rearrange them https://prnt.sc/FMDycd4fkoES

    Best Regards,

    #640316

    vt
    Participant

    there is problem with that it takes subcategories after the parent category and that doesnt allow for the order i want

    #640490

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Can you please share some screenshots for a better understanding of where you want to add the categories in an order? Also, share the page URL so I will further check on your site and give you a possible solution.

    Best Regards,

    #640493

    vt
    Participant

    hello
    i have removed the product categories title from my page and just manually create my own menu since it didnt see to be a way to fix the order i wanted so i guess its fixed…the menu was on front page

    #640501

    vt
    Participant

    if you have a solution for it i will welcome since the fake menu i fixed does not look as good as the product categories titles

    #640703

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    But you can easily rearrange your menu items by following these steps:

    Navigate to your WordPress Dashboard.
    Navigate to Appearance > Menus.
    Select the menu you want to edit.
    Drag and drop the menu items to rearrange them in your preferred order.

    If you have another behavior please share some screenshots for a better understanding of what you actually want so I will further check on your site and give you a possible solution.

    Best Regards,

    #640730

    vt
    Participant

    https://prnt.sc/1tUHGPjlcmJg
    https://prnt.sc/21bXWKM-rrU_
    as you can see its not a menu its just a product categories titles it shows the categories titles and its used as a menu
    https://prnt.sc/V-1BjKBQVgli
    this options dont work and are not what i want i wanted to have a specific order show the categories i want only
    if i drag and drop the ctegories in order here https://prnt.sc/-0Hlm9-bssCP
    you will see that a parent categry will take the child(subcategoeries) with it in the order i can remove all the child categories with css but that will be a problem since there is a need for some subcategories to be shown

    #640997

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    I understand your concern. Since the product categories widget does not allow for a fully customized order, this requires a custom code, which falls outside the theme support policy.

    However, I have searched and found this custom code that you can try:

    Add this code to your functions.php file:

    function custom_product_categories_shortcode() {
        return do_shortcode('[product_categories orderby="include" ids="12,34,56,78"]');
    }
    
    // Register a new shortcode
    add_shortcode('custom_product_categories', 'custom_product_categories_shortcode');

    Now, you can use the [custom_product_categories] shortcode anywhere page to display the specific product categories in your defined order.

    I have tested this code on our test site, and it works fine.
    https://ibb.co/YT0n0mp5
    https://ibb.co/208nqXs5

    If this code does not work on your site, we won’t be able to modify it further, as custom code adjustments are not included in the theme support policy.

    Hope this Helps!

    Best Regards,

    #641017

    vt
    Participant

    okay thank you

    #641107

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    You’re very welcome! I’m glad I could help. If you need anything else, feel free to reach out!

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards,

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

The topic ‘sort by doesnt work’ is closed to new replies.