tcs_saskia
Member
Posted 1 year ago #
Hi,
Desperately trying to figure how to put the Latest Blog Posts (which can be seen on the homepage http://www.thecustomersshoes.tcsltd-sites.org/) into the side of each individual post (such as this http://www.thecustomersshoes.tcsltd-sites.org/blog/2010/07/06/things-are-changing-get-excited/). I thought I could just take the code from the homepage and put it in the loop but no luck.
Any ideas?
Thanks a lot in advance!
in the sidebar code, you could put a line like this before the loop code you copied from the homepage:
<?php query_posts('cat=0&posts_per_page=5'); ?>
and after the end of the loop code in sidebar, add:
<?php wp_reset_query(); ?>
if in doubt, you can paste the code that you tried in the sidebar in a http://wordpress.pastebin.com/ and post the link to it here. someone might check it and might have suggestions.
tcs_saskia
Member
Posted 1 year ago #
Thanks for this, unfortuantely no luck though. I'm not sure I quite understand what the pastebin...
use once
<?php query_posts('showposts=1'); ?>
and after the end of the loop code in sidebar, add:
<?php wp_reset_query(); ?>