Support » Fixing WordPress » Custom page.php for post & pages

  • Resolved James

    (@sureshkutti)


    Hi…I have page template. In that i need to add custom code like if its page need to get the templates else if its post need to get blog post.

    <header>
    is_page() {
    display template….
    post() {
    display blog post/ template…
    <footer>

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom page.php for post & pages’ is closed to new replies.