Forums

Give help. Get help.

  • # April 13, 2010 at 11:15 am

    I’m using wordpress. I want to add certain code to the header when someone is browsing an article page (which uses the page.php template). I’ve done something similar (not in wordpress) before by having this in the header:

    Code:
    < ?php if ($current_page == "gallery") { ?> < ?php } ?>

    And this in the page:

    Code:
    < ?php $current_page = "gallery"; ?>

    I’ve tried that but it’s not working in wordpress. Any ideas?

    # April 14, 2010 at 9:36 am
    Code:
    < ?php if (is_page()) { ...stufff...
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag