Home / Forums / WoodMart support forum / sort by doesnt work
Home › Forums › WoodMart support forum › sort by doesnt work
sort by doesnt work
- This topic has 10 replies, 2 voices, and was last updated 1 year, 4 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
February 21, 2025 at 3:12 pm #639954
vtParticipantHello
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 itFebruary 22, 2025 at 9:07 am #640080Hello,
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,
February 24, 2025 at 9:59 am #640316
vtParticipantthere is problem with that it takes subcategories after the parent category and that doesnt allow for the order i want
February 24, 2025 at 3:04 pm #640490Hello,
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,
February 24, 2025 at 3:09 pm #640493
vtParticipanthello
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 pageFebruary 24, 2025 at 3:15 pm #640501
vtParticipantif 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
February 25, 2025 at 9:13 am #640703Hello,
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,
February 25, 2025 at 10:31 am #640730
vtParticipanthttps://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 shownFebruary 26, 2025 at 7:19 am #640997Hello,
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/208nqXs5If 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,
February 26, 2025 at 10:05 am #641017
vtParticipantokay thank you
February 26, 2025 at 1:29 pm #641107Hello,
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, -
AuthorPosts
The topic ‘sort by doesnt work’ is closed to new replies.
- You must be logged in to create new topics. Login / Register