- This topic has 2 replies, 2 voices, and was last updated 3 years, 5 months ago by .
I’m using a checkbox list field-type to allow the user to select multiple posts on the backend. I’m able to manipulate the appearance order for this backend view, however I unsure how to control the order in which posts are returned on the frontend, in my template.
The code I’m currently using, below, does not seem to respond when I change the menu_order of the posts. Specifically, the backend view changes to reflect the new post sort order, but the frontend view remains the same.
<?php $posts_array = rwmb_meta('_posts_select');?>
Are there arguments, similar to those below, I can use to sort posts into the returned array?
<?php $posts_array = rwmb_meta('_posts_select', 'sort_order=ASC&orderby=menu_order');?>
Thanks in advance for your time looking at this.
- The topic ‘Orderby and Sort Order on frontend for Post Checkbox List.’ is closed to new replies.