Problem showing page title on all pages except the homepage (2 posts)

  1. wordpressdude
    Posted 6 years ago #

    I've searched for this in the WordPress forum and found that the solution is to use is_home() and is_front_page(). I've used both, but without success. I've used them in the page template, page.php. But WordPress doesn't respond to this.

    I've also tried the code from this post (and used it in page.php):

    and from several other posts, but none of them work.
    I'm using WordPress 2.6 and the only plugins I use are NextGen Gallery and TinyMCE Advanced.

    I would like to know why WordPress doesn't respond to the code.

  2. moshu
    Posted 6 years ago #

    Which file to edit... that depends on your settings regarding the main/front page.
    Did you you set up a Page as your main/front page in Settings > Reading? (and another one for your posts page)
    If yes - then is_front_page is the tag in page.php.
    If no - then is_home should be the tag in the index.php.

Topic Closed

This topic has been closed to new replies.

About this Topic