Skip to content

Instantly share code, notes, and snippets.

@chrisguitarguy
Created October 20, 2011 15:57
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save chrisguitarguy/1301501 to your computer and use it in GitHub Desktop.
Save chrisguitarguy/1301501 to your computer and use it in GitHub Desktop.
Add menu order to WordPress posts
<?php
/*
Plugin Name: Add Menu Order to Posts
Plugin URI: http://pmg.co/category/wordpress
Description: Adds menu order and template to post types.
Version: n/a
Author: Christopher Davis
Author URI: http://pmg.co/people/chris
*/
add_action( 'init', 'wpse31629_init' );
function wpse31629_init()
{
add_post_type_support( 'post', 'page-attributes' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment