Support » Plugin: Post Types Order » Orders in Backend but not frontend

  • Resolved piranimg


    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author nsp-code


    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

    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 );

    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.



    Forum Moderator

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Orders in Backend but not frontend’ is closed to new replies.