Fast help needed, for proper placing of a condition in a code.
-
here is what i have for title in my header.php file
<title><?php $metaSettings = get_option("metaSettings"); if(is_home()) { if($metaSettings['sitetitle'] and $metaSettings['sitetitle'] != '') {echo $metaSettings['sitetitle'];} else {bloginfo('name'); }} else { the_title(); }?></title>
i want to add condition for is_attachment, and set custom title when the page is attachment page, what would be the right way to do that?
Thank you!
[Please post code snippets between backticks or use the code button.]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Fast help needed, for proper placing of a condition in a code.’ is closed to new replies.