Quote:
Originally Posted by harris414
I am adding the featured video we did on the sidebar to the homepageright widget area we added. I have hard codded it in as follow but get an internal error, do you see what im doing wrong.
PHP Code:
<div class="homepageleft">
<ul>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Home Page Left') ) : ?>
<?php endif; ?>
</ul>
</div>
<div class="homepageright">
<?php $recent = new WP_Query("cat=3&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<?php the_content(__('Read more'));?>
<?php endwhile; ?>
<h4><?php _e("More", 'studiopress'); ?> <?php echo cat_id_to_name(get_theme_mod('featured_bottom_right')); ?></h4>
<ul>
<?php $recent = new WP_Query("cat=3&showposts=3"offset=1); while($recent->have_posts()) : $recent->the_post();?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
</div>
</div>
<?php include(TEMPLATEPATH."/sidebar.php");?>
|
I am re-building my site and am trying to get this widget area added to home page for featured video. I am back to this point but dont see what i did wrong here, i found it back then but not now.lol could someone help me.