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?
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?
here is the full list of conditional tags:
http://codex.wordpress.org/Conditional_Tags
try either:
is_single('45') for a post;
or:
is_page('45') for a page.
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.
This topic has been closed to new replies.