0

I have one wordpress theme which contain Custom Post Type.

And in my theme I can add that as a page which show some different URL.

Now when I call a WP function (is_page('some-page')) for wordpress page so this code is working.

Now for my Custom page I write that same code but it's not working.

So my question is how can we call this kind of specific custome page in wordpress.

1

Please check Wordpress theme hierarchy and you will know which file you need to create for custom post types :-)

http://codex.wordpress.org/File:Template_Hierarchy.png

Most likely you are after archive-$posttype.php

3
  • Thanks for your replay, This is exactly what I want thanks a lot.
    – wasim kazi
    Sep 19 '12 at 10:08
  • try get_post_type( $post->ID ) == "[YOUR POST TYPE]"
    – Merca
    Sep 19 '12 at 10:11
  • is_single is work in my case
    – wasim kazi
    Sep 19 '12 at 10:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.