I am trying to set the decription meta tag for each page by adding in the wp_title as follows:
<meta name="description" content="Continually updated to collate the latest <?php wp_title('',true,'right'); ?>news from across across the accountancy profession.">
However, if the wp_title is “Contact” or “Link to Us” I would like it to be blank ie so that the the content reads “Continually updated to collate the latest news from across across the accountancy profession.”
Also, how do I get rid of the extra space which is inserted after wp_title as part of the seg?
[Please post code snippets between backticks or use the code button.]
- The topic ‘wp_title’ is closed to new replies.