wp_title showing page title but not site title

I couldn’t find an answer to this question anywhere and I have a hard time believing I’m the only one who has had this problem.

My title function inside my title tag of header.php, <?php wp_title('|', true, 'right'); ?>, is returning the page title but not the site title.

Read More

Example: About Us |

Why would it not be returning the site name??

Related posts

Leave a Reply

2 comments

  1. I’ve never tried combining the entire title inside one function. Instead I use multiple calls:

    <?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' |'; } ?> <?php bloginfo('name'); ?>