Post Types Order
[resolved] [closed] Orders in Backend but not frontend (5 posts)

  1. piranimg
    Posted 1 year ago #

    Using this plugin, if I re-order a custom post type we created (Staff)... it re-orders it on the backend (post listings), however, not on the front end. We are using a slightly modified version of our themes archive.php file, but nothing within the file or within functions.php is over-riding the ordering...

    are we supposed to add something to the archive.php file to get it to work?


  2. nsp-code
    Plugin Author

    Posted 1 year ago #

    Can you check if the Autosort is ON? Otherwise include the following within your query:
    'orderby' => 'menu_order'
    If the above does not work, it means there's something wrong with your query, see if match the WordPress Codex description http://codex.wordpress.org/Class_Reference/WP_Query

  3. sdaponte
    Posted 1 year ago #

    I'm having the same problem. Auto sort and Admin sort are both set, and my custom post type is non-hierarchical. I have his working for some custom post types, but not others.
    I've tried every 'orderby' option on the codex page nsp-code suggested page (Section 5.11) and none of them seem to make a difference.

    <?php $args = array( 'post_type' => 'mde_fact', 'posts_per_page' => 5, 'orderby' => 'ID', 'order'=>'ASC', 'hierarchical' => false);
    				$loop = new WP_Query( $args );
  4. amfriedman
    Posted 1 year ago #

    I have this failing even for regular posts and pages. I can sort in the admin but the front-end just sorts with default date descending as if the Advanced Post Types Order plugin isn't even operating. I have autosort on. Help please.

  5. esmi
    Forum Moderator
    Posted 1 year ago #

    If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else's topic.

    I am now closing this 8 month old resolved topic as it references an older version of WordPress and (probably) the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.