get Custom post page name


/ Published in: PHP
Save to your folder(s)

Custom post page name


Copy this code and paste it in your HTML
  1. <?php $post_type = get_post_type_object( get_post_type($post) );
  2. echo $post_type->labels->singular_name ; ?>
  3.  
  4.  
  5. <a class="button blue" href="<? echo(get_page_link(get_page_by_title('Custom post page name')->ID)) ?>">Find out More</a>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.