Forums

[closed] Fast help needed, for proper placing of a condition in a code. (3 posts)

  1. Fking
    Member
    Posted 11 months ago #

    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.]

  2. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

  3. Fking
    Member
    Posted 11 months ago #

    ok i just posted there as well :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags