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

  1. kjmagic13
    Posted 2 years 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']); ?>


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

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