WordPress.org

Ready to get started?Download WordPress

Forums

Post Types Order
Propose Choosing Certain Post Type's to Reorder (1 post)

  1. kjmagic13
    Member
    Posted 9 months ago #

    Great plugin! May I suggest you allow users to choose which post types they want the re-order submenu to show up on.

    Functions File

    function reorder_certain_post_types($checked,$echo=true) {
    	$post_types = get_post_types();
    	foreach ($post_types as $key => $type) {
    		$out .= "<label for=\"certain_post_types[$type]\">";
    		$out .= "<input type=\"checkbox\" id=\"certain_post_types[$type]\" name=\"certain_post_types[$type]\" ".checked($checked[$type], 'on', false).">";
    		$out .= "$type</label><br>";
    	}
    	if ($echo) {
    		echo $out;
    	} else {
    		return $out;
    	}
    }

    Settings File
    <?php reorder_certain_post_types($options['certain_post_types']); ?>

    http://wordpress.org/extend/plugins/post-types-order/

Reply

You must log in to post.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 9 months ago by kjmagic13
  • This topic is not a support question
  • WordPress version: 3.5.2