WordPress.org

Ready to get started?Download WordPress

Forums

Simple Page Ordering
[resolved] Not working on Front End (3 posts)

  1. Abhimanyu Singhal
    Member
    Posted 10 months ago #

    I have added the orderby argument as shown in the full code registering my custom post type, below..

    $args = array(
    		'labels' => $labels,
    		'public' => true,
    		'exclude_from_search' => true,
    		'publicly_queryable' => true,
    		'show_ui' => true,
    		'query_var' => true,
    		'capability_type' => 'post',
    		'hierarchical' => true,
    		'orderby' => 'menu_order',
    		'order' => 'ASC',
    		'menu_position' => null,
    		'supports' => array('title','editor','thumbnail','custom-fields','excerpt','comments', 'page-attributes')
    	  ); 
    
    	  register_post_type(__( 'portfolio' ),$args);
    }

    The plugin works great in the backend but in vain for the front end. Any help would be appreciated. ^_^

    Thanks.

    http://wordpress.org/extend/plugins/simple-page-ordering/

  2. Austen Blokker
    Member
    Posted 10 months ago #

    You've got the completely wrong arguments going into register_post_type(). Orderby and order don't belong here. They are meant to be used when you are querying posts from the frontend, in WP_Query()

  3. Abhimanyu Singhal
    Member
    Posted 10 months ago #

    Solved. Thanks!

Reply

You must log in to post.

About this Plugin

About this Topic