| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
![]() |
| | Thread Tools | Display Modes |
| |||
| Hi all, I changed the WP template to the 2 column one by Dewald and have been messing around with the order of things in the sidebar. What I wanted to do was move the Site Tags below the Catagories and Recent Entries. One would think it would be a simple cut and paste. However, now I've ended up with 3 Site Tag sections! Here's the site: Best Organic Skincare and here's the code from the sidebar.php file: (after the Recommended tag) <h2>Search This Site:</h2> <div class="menublock"> <form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <input class="searchfield" type="text" name="s" id="s" value="" title="Enter keyword to search" /> <input class="submit" type="submit" value="search" title="Click to search archives" /> </form> </div> <h2><?php _e('Categories:'); ?></h2> <ul class="menublock"> <li><?php list_cats(0, '', 'name', 'asc', '', 1, 0, 0, 1, 1, 1, 0,'','','','','',TRUE) ?></li> </ul> <h2>Recent Entries:</h2> <ul class="menublock"> <?php $latest = new WP_Query('showposts=5'); while ($latest->have_posts()) : $latest->the_post(); ?> <li><a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a></li> </ul> <h2>Site Tags:</h2> <ul class="menublock"> <font size="2"><?php UTW_ShowWeightedTagSetAlphabetical("coloredsizedta gcloud","","25") ?></font> </ul> <?php endwhile; ?> <?php if (function_exists('get_recent_comments')) { ?> <li><h2><?php _e('Recent Comments:'); ?></h2> <ul> <?php get_recent_comments(); ?> </ul> </li> <?php } ?> <?php sem_subscribe_me(); ?> <h2>Favorite Links:</h2> <ul class="menublock"> <li><?php get_linksbyname('', '', '<br />', '', TRUE, 'name', FALSE, TRUE); ?></li> </ul> <?php if (function_exists('translate')) { ?> <h2>Translate Site:</h2> <ul class="menublock"> <li><?php translate(1); ?></li> </ul> <?php } ?> <h2>Meta:</h2> <ul class="menublock"> <?php wp_register(); ?> <li><?php wp_loginout(); ?></li> <?php wp_meta(); ?> </ul> </div> </div> Any ideas what I did wrong? Thanks for your help. GiGi |
| |||
| You've got your site tag code stuck in a loop. Move this; <?php endwhile; ?> ABOVE this; <h2>Site Tags:</h2> So it ends up looking like this; <h2>Recent Entries:</h2> <ul class="menublock"> <?php $latest = new WP_Query('showposts=5'); while ($latest->have_posts()) : $latest->the_post(); ?> <li><a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a></li> </ul> <?php endwhile; ?> <h2>Site Tags:</h2> <ul class="menublock"> <font size="2"><?php UTW_ShowWeightedTagSetAlphabetical("coloredsizedta gcloud","","25") ?></font> </ul> Mike |