Forums

Wants to display a code on each page but not on one page (3 posts)

  1. swapnesh
    Member
    Posted 1 year ago #

    Hello friends,
    plz someone tell me ..i have a block of code that i want to use on my all pages except only on ONE single page..i embedded the code in Page Template(page.php) but its showing the content in all pages..but i only want to show the cod in all page except in one..help me plz

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    <?php if(!is_page('Foo') ) :?>
    [ code block ]
    <?php endif;?>

    http://codex.wordpress.org/Conditional_Tags

  3. swapnesh
    Member
    Posted 1 year ago #

    Very thx esmi ..fixed the problem ..and i am looking for some tutorial on Coding for wordpress and what additional coding i can do in wordpress apart from template design

Topic Closed

This topic has been closed to new replies.

About this Topic