- This topic has 2 replies, 2 voices, and was last updated 10 years, 8 months ago by .
Viewing 3 posts – 1 through 3 (of 3 total)
Viewing 3 posts – 1 through 3 (of 3 total)
Posted
by
Forums › Forums › Search & Filter Pro › How to make the most recent post(DESC) appear first?
Hi,
I integrated pro version on my website. Using ‘ajax’ and ‘short-code’ for search filtration with custom taxonomy. But on search result box, articles are sorted by date but the older 1st, and newest last.
Please find my code,
<?php echo do_shortcode('[searchandfilter id="748" show="results" order_by="date" order_dir="DESC"]'); ?>
But not working. How can I show recent posts first using this plugin?
Thanks & Regards,
Vijil
Hey there
Check in the “posts” tab of your search form, lots of sorting options there ๐
Oh, and remove the order_by from your shortcode!
๐