Headers not displaying what I need
-
Hi
I am trying to set the headers of my pages and both wp_title() and the_title() don’t give me the correct result. What I want is my blog to purely display ‘blog’ on the home.php page and archive pages and ‘work’ on my work.php and it’s archive pages.
The problem that I’m experiencing is that the blog home.php uses wp_title() displays as ‘CRAIG JAMIESON ? BLOG’ and on the paginated pages ‘CRAIG JAMIESON ? BLOG ? PAGE 2 OF 6’. All I want it to say is ‘Blog’
The work.php page seems to be defaulting to the archive.php (it was the only way I could get my cutom post types pages to paginate correctly) and it uses the the_title() but it displays as the first list item of the posts. So if the first project is chicken, it displays chicken. This displays this way on all follow on pages as you paginate. Again, I really just want the work.php and the work archive pages to have headers that say ‘work’.
I have looked into header options and the only option seems to be wp_title() or the_title() and both don’t seem to work for me as they should. Please could you advise?
Thank You
- The topic ‘Headers not displaying what I need’ is closed to new replies.