Created
February 22, 2014 16:39
-
-
Save ingozoell/9157662 to your computer and use it in GitHub Desktop.
Add Page Attributes to custom post types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Register CPT | |
Add 'page-attributes' | |
// 'supports' => array( 'title', 'editor','thumbnail','page-attributes' ) | |
// Landingpage/Template | |
Add '&orderby=menu_order' | |
//$portfolio_query = new WP_Query( 'post_type=portfolio&orderby=menu_order&posts_per_page=-1' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment