JohannaK
Forum Replies Created
-
Forum: Plugins
In reply to: [Widgets on Pages] [Plugin: Widgets on Pages] Code for themeHi Todd,
I have followed this thread but still not getting it to work within my theme.
I named my sidebar rss and changed wop_1 to rss in the code then added it (<?php widgets_on_template(“rss”); ?>) to my home.php file (inside the <div class=”homepagebox_04″>) but it does not show up. I have tried to add it in multiple places within the file, but nothing happens.
Hope you can help ??
Here’s the full code for the home.php file:
<?php get_header(); ?>
<div id=”contenthome”>
<div id=”homepagetop”>
<?php include(TEMPLATEPATH.”/includes/slider.php”);?>
</div><div id=”homepage”>
<div class=”homepagebox_01″>
<div class=”homebox”>
<?php $recent = new WP_Query(“cat=”.ot_option(‘hp_bottom_cat’).”&showposts=1″); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, “thumbnail”, true) ): ?>
<?php else: ?>
<?php endif; ?>” rel=”bookmark”><?php the_post_thumbnail( ‘home-thumbnail’ ); ?>
<div class=”homeboxinfo”>
<h4>” rel=”bookmark”><?php the_title(); ?></h4>
<?php the_excerpt(); ?>
</div>
<?php endwhile; ?>
</div>
</div><div class=”homepagebox_02″>
<div class=”homebox”>
<?php $recent = new WP_Query(“cat=”.ot_option(‘hp_bottom_cat’).”&showposts=1&offset=1″); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, “thumbnail”, true) ): ?>
<?php else: ?>
<?php endif; ?>
” rel=”bookmark”><?php the_post_thumbnail( ‘home-thumbnail’ ); ?>
<div class=”homeboxinfo”>
<h4>” rel=”bookmark”><?php the_title(); ?></h4>
<?php the_excerpt(); ?>
</div>
<?php endwhile; ?>
</div>
</div><div class=”homepagebox_03″>
<div class=”homebox”>
<?php $recent = new WP_Query(“cat=”.ot_option(‘hp_bottom_cat’).”&showposts=1&offset=2″); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, “thumbnail”, true) ): ?>
<?php else: ?>
<?php endif; ?>
” rel=”bookmark”><?php the_post_thumbnail( ‘home-thumbnail’ ); ?>
<div class=”homeboxinfo”>
<h4>” rel=”bookmark”><?php the_title(); ?></h4>
<?php the_excerpt(); ?>
</div>
<?php endwhile; ?>
</div>
</div><div class=”homepagebox_04″>
<div class=”homebox”>
<?php $recent = new WP_Query(“cat=”.ot_option(‘hp_bottom_cat’).”&showposts=1&offset=3″); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, “thumbnail”, true) ): ?>
<?php else: ?>
<?php endif; ?>
” rel=”bookmark”><?php the_post_thumbnail( ‘home-thumbnail’ ); ?><div class=”homeboxinfo”>
<h4>” rel=”bookmark”><?php the_title(); ?></h4>
<?php the_excerpt(); ?>
</div>
<?php endwhile; ?>
</div>
</div>
</div>
</div><?php get_footer(); ?>