• Hi,

    I am using twenty ten theme. Now have added some information through conditional tag for different posts on loop.single.php so when I open those posts – information shows in but when I go through category, or home pages – those posts information does not show. I adding below code in sigle.php

    <?php if ( is_single ( array( 'WORK' ) ) ) { ?>
    <div style='margin:-50px 5px 0px 5px; float:right'><img src="https://example.com/wp-content/uploads/2012/11/work.jpg" alt="work" title="work" width="120" height="120" class="alignright size-full wp-image-6924" />
    </div>
    <?php } ?>
    <?php if ( is_single ( array( 'Routine' ) ) ) { ?>
    <div style='margin:-50px 5px 0px 5px; float:right'><img src="https://example.com/wp-content/uploads/2012/10/Routine.jpg" alt="Routine" width="100" height="100" class="alignright size-full wp-image-6453" />
    </div>
    <?php } ?>

    So now I want this condition to be shown in whether I open pages, or home page through, or Category.. etc

    Thanks in Advance

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Some text after title in content’ is closed to new replies.