• I’m currently editing the theme (I’m working from arthemia if that helps) on my website https://paragamer.com

    I tried to put the following code into my sidebar, but then the sidebar just dissapeared.

    <h5>Bargains</h5>
    
    	<?php query_posts("showposts=1&category_name=Bargains"); $i = 1; ?>
    
          	<?php while (have_posts()) : the_post(); ?>
    	<div class="clearfloat">
    	<?php $values = get_post_custom_values("Bargains");
    	if (isset($values[0])) { ?>
    	<img src="<?php
    $values = get_post_custom_values("Bargains"); echo $values[0]; ?>" width="100" height="145"
    alt="<?php the_title(); ?>" class="left" width="100px" height="145px"  />
          <?php } ?>
    	<div class="info"><a href="<?php $values = get_post_custom_values("Link"); echo $values[0]; ?>"><h3><?php the_title(); ?></h3></a></br>
    <h4><?php the_excerpt(); ?></h4>

    I then put the same code into the featured part of the theme, it’s just above the sidebar, it worked fine there.

    Anyone know how I can get that code to work in my sidebar?

    Cheers

  • The topic ‘Adding Content, PHP and Custom Fields to a sidebar!’ is closed to new replies.