Support » Plugins » what happened to is_page(‘9’) syntax?

  • I’m changing a site to be powered by wordpress and as such the content has to run in what used to be an i-frame and is now a scrolling div..
    1. the original site: http://www.thenews.com.au

    2. the work in progress: http://www.nortypig.com/webdev

    This is version 1.5.1.3 and in a previous version when I wanted to detect a specific page I’d use the is_page() function to peel off conditions for that page. This does not seem to work – is_home() works but not is_page().

    Could anyone tell me if there is a new syntax for this as if you go to my work in progress you’ll see clicking either about or archives will have both pages returned in the content section.

    To add, the scrolling div is actually what used to be the sidebar.php while the pages appear in sidebar2.php. But that may just confuse the matter. I guess I could just MySQL the info out onto the page but I’d like to know where is_page went? Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • is_page should still work. Not sure why it wouldn’t, but I am not overly familiar with conditionals myself.
    http://codex.wordpress.org/Conditional_Tags

    Also, you might want to upgrade to 1.5.2 asap, for security reasons.

    is_page() still works here.

    Thanks… I worked out the bug. Just a FYI then. When I used ?page_id=about or ?page_id=archives the variable wp_title() for some reason was archives in both cases… so that’s why I couldn’t peel off the right page…

    but when I went back to the ?page_id=”9″ and ?page_id=”11″ it worked.

    Thus is_page(‘9’) actually worked but not is_page(‘about’). Kinda weird but working fine now. Thanks again. By the way how do I resolve this post?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘what happened to is_page(‘9’) syntax?’ is closed to new replies.