Support » Plugin: Custom Post Template » If is a post template

Viewing 1 replies (of 1 total)
  • Alex

    (@netxm)

    $template = get_post_meta($post->ID, 'custom_post_template', true);
    if($template == 'single-custom-post.php'){
      echo 'this post template is single-post-post.php';
    }
Viewing 1 replies (of 1 total)
  • The topic ‘If is a post template’ is closed to new replies.