• I am currently using:

    <title><?php

    if (is_home()) { print “whatever title I want to have on my blog home page.”; } else { bloginfo(‘name’); print ” | “; wp_title(‘ ‘); } ?></title>

    for my title tag. The problem is the ‘if (is_hom()’ part. I want to display a specified title as this suggests, but I have the “front page” redirecting to a self made “home” page. That’s the one I want to have the desired title tag for, and the dynamic one for the others. This code is making it so that the original home page is using my desired title. How do I fix this. Any and all help is greatly appreciated

The topic ‘PHP Title Tag’ is closed to new replies.