Variable Sidebar…why isn’t my code working?
-
Please check out my code. Basically, I want another
< li > added when it’s on the “how-tos” page.<div id="sidebar"> <ul> <li> <?php login_with_ajax(); ?> </li> <li> <h2>Connect</h2> <center> <a title="Follow Us On Twitter!" href="https://www.twitter.com/socialmediate" style="margin-right: 10px;" target="_blank"><img alt="Follow Us On Twitter!" src="https://www.socialmediate.com/wp-content/themes/socialmediate/images/twitter.png"/></a> <a title="Add Us On Facebook!" href="https://www.facebook.com/pages/Social-Mediate/127797375765" target="_blank"><img alt="Add Us On Facebook!" src="https://www.socialmediate.com/wp-content/themes/socialmediate/images/facebook.png"/></a> </center> </li> <?php if (is_page('how-tos')) { ?> <li><h2>Previous How To's</h2> <?php query_posts('cat=4'); ?> </li> <?php } ?> </ul> </div>
- The topic ‘Variable Sidebar…why isn’t my code working?’ is closed to new replies.