• T B

    (@bekefitibor)


    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael

    (@alchymyth)

    here is the full list of conditional tags:
    https://codex.www.ads-software.com/Conditional_Tags

    try either:

    is_single('45') for a post;

    or:

    is_page('45') for a page.

    Thread Starter T B

    (@bekefitibor)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide content if in… site_id?’ is closed to new replies.