Display related cpts ordered by menu order
-
Hi!
I have 2 custom post types that are bi-directionally related.I’m using this code to display related posts:
$art = pods('art', get_the_id()); $docs_rel = $art->field('doc_rel'); if ( ! empty( $docs_rel ) ) { foreach ( $docs_rel as $doc_rel ) { ... } }
This is working fine, but if I change the posts order from the admin panel, it doesn’t change.
I would like to display the related custom posts in the same order they appear in the admin (menu_order).
Is it possible?Thanks a lot!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Display related cpts ordered by menu order’ is closed to new replies.