Can you explan these lines of PHP in wordpress please?

A

Anonymous

Guest
Hi

Can you explain this php code in wordpress.
It exists in the home page and all sub pages.
I want a title to appear in both type of page.

What does line 2 and line 3 mean?

1 <title>
2 <?php wp_title(' '); ?>
3 <?php if(wp_title(' ', false)) { echo ' | '; } ?>
4 <?php bloginfo('description'); ?>
5 </title>

Thanks
Arthur
 
Hey astoller.

Well, the second line it is/seems a separator for the description (3rd line) and the title (1st line - if it exists).
You can use the title (1st line) where you want the title to appear.
The 3rd line is the description you gave to your blog (at the admin panel/options).

However, you can get better support (and i suggest it) at the wordpress forum.
 
Back
Top