Select The Target page…

" />
Select a page...
www
    'count', 'order' => 'DESC','number'=> 1 )); if(empty($tags) == false){ $tag_id = $tags[0]; $tag_link = get_tag_link($tag_id); }else{ $tag_link = null; } // Getting cat href $cat_id = 0; $cats = get_categories(array('orderby' => 'count', 'order' => 'DESC','number'=> 1 )); if(empty($cats) == false){ $cat_id = $cats[0]; } $cat_link = get_category_link($cat_id); // Getting archive link $latest_post = get_posts("post_type=post&numberposts=1"); $latest_post_id = $latest_post[0]->ID; $last_post_date = get_the_date("Y",$latest_post_id); $archive_link = get_home_url()."/".$last_post_date; ?>
  • General
  • Homepage
  • data-template="" data-type-value="search" data-type-href="">Search page
  • data-template="" data-id-value="tag" data-type-value="tag" data-type-href="">Tag page
  • data-template="" data-type-value="category" data-type-href="">Category page
  • data-template="" data-type-value="archive" data-type-href="">Archive page
  • data-template="" data-type-value="author" data-type-href="">Author page
  • data-template="" data-type-value="404" data-type-href="">404 error page
  • WordPress
  • data-single="" data-type-value="login" data-type-href="">Login page
  • data-single="" data-type-value="register" data-type-href="">Register page
  • data-single="" data-type-value="lostpassword" data-type-href="">Lost Password page
  • true), 'names'); // Each post types foreach ($visiblePostTypes as $post_type){ // skip if($post_type == "snp_popups"){ continue; } // query for your post type $query = new WP_Query( array( 'post_type' => $post_type, 'posts_per_page' => -1 ) ); if ( $query->have_posts() ) { // Has Single Style? $hasTemplate = "0"; // this type template $templateStyle = get_option('wt_'.$post_type.'_css'); // check post meta if(empty($templateStyle) != true && $templateStyle != "false"){ $hasTemplate = substr_count($templateStyle, ';'); } // show an label echo '
  • '.ucfirst($post_type).'
  • '; // Each lists while ( $query->have_posts() ) { $query->the_post(); $title = get_the_title(); $id = get_the_id(); $infor = ""; if($id == $frontpage_id){ $infor = "Front Page"; }else if($id == $blogpage_id){ $infor = "Posts Page"; } // check the style $hasStyle = ""; // Has Single Style? $hasSingle = "0"; // with post meta $get_post_meta = get_post_meta($id, '_wt_css', true); // check post meta if(empty($get_post_meta) != true && $get_post_meta != "false"){ $hasStyle = "class='has-style'"; $hasSingle = substr_count($get_post_meta, ';'); } echo '
  • ' . ucfirst(strtolower(yp_get_short_title($title, 50))).$infor . '
  • '; } } } ?>

Customizing Type

Single

apply style just to