Hide content if in... site_id? (3 posts)

  1. T B
    Posted 5 years ago #

    How can I insert content to the page.php or single.php, for only one blog (e.g.: ID:45).

    Something similar:
    <?php if ( in_category( array( 3 ))) { echo '<div id="postcontent">content</div>' ; } ?>

    For page, not for category?

  2. Michael
    Forum Moderator
    Posted 5 years ago #

    here is the full list of conditional tags:

    try either:

    is_single('45') for a post;


    is_page('45') for a page.

  3. T B
    Posted 5 years ago #

    Sorry mine miss..

    I mean for blog, not for category?

    There is no any conditional tag for blog.

    I would like insert a picture to the template, for only one blog - ms-multisite.

Topic Closed

This topic has been closed to new replies.

About this Topic