how to add different static text on different blogs in my multisite wordpress
-
Hi!
I have installed two sites, using multisite (subfolder). I did it to have two different blogs. In both blogs posts’ pages assigned from the Settings/Reading.I need to have different intros for each blog. I tried to assign another page template for the second blog – it does not work.
If I add something above the Loop in index.php it appears in both blogs.What is the best decision for me? I would have an opportunity to change these intros using wordpress page editor.
I found at one forum this code which is not working for me:
<?php
global $paged;
if(is_home() && $paged == “1”) :
?><?php
$my_query = new WP_Query(‘pagename=[name of my page]’); // here is the name of the necessary page goes
while ($my_query->have_posts()) : $my_query->the_post();
?>
<div class=”post”>
<h1><?php the_title(); ?></h1>
<?php the_content(‘ ‘); ?>
</div>
<?php endwhile; ?>
<?php endif; ?>Thanks in advance!
- The topic ‘how to add different static text on different blogs in my multisite wordpress’ is closed to new replies.