Order by doesn't seem to be working
-
Hi, great plugin, but I’m having trouble getting the sort to work. Can you see anything wrong with my shortcode syntax please?
<?php
echo do_shortcode(‘[ajax_load_more post_type=”post” post_format=”standard” posts_per_page=”‘.get_field(‘num_posts’,’option’).'” category=”events” button_label=”LOAD MORE” max_pages=”99″ post_status=”publish” orderby=”date” order=”DESC”]’); ?>I want to sort by published date.
Many thanks
Delyth
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Order by doesn't seem to be working’ is closed to new replies.