Support » Plugin: Post Types Order » Propose Choosing Certain Post Type's to Reorder

  • 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/

  • The topic ‘Propose Choosing Certain Post Type's to Reorder’ is closed to new replies.