paulhoefgen
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Only Showing 4 posts on frontpage, despite settingsoh, looking over it now, the call to the slideshow is made in header.php
also, hardcore=hardcode.
Forum: Fixing WordPress
In reply to: Only Showing 4 posts on frontpage, despite settingsyessum. very late last night 🙂
The standard f8-lite slideshow rotates through images on the 4 latest posts, it controls the while loop by setting the showpost variable to 4 ie
“showpost=4”
and then uses custom fields to call user defined images from the latest 4 posts.
As per the instructions, I changed it to show a static selection of images, so instead of using a loop to generate the URL’s of the images, you hardcore an unordered list.
But the instructions dont mention the showpost=4 variable.
Because the index.php file calls on slideshow.php before “the loop”
it takes the showpost variable into account when its displaying the posts.So, in other words, all i had to do was change showpost=4 to showpost=6. It didnt work when I deleted all the code that i thought was unnessesary, so i had to kludge it in.
I ended up re-uploading the entire theme, which took out all of my custom settings, and then re-uploaded the edited files one at a time to find out which php file was causing the fault…
<!-- Begin slideshow --> <?php query_posts('showposts=9'); ?> <ul id="portfolio"> <li><img src="<?php bloginfo('stylesheet_directory'); ?>/images/slideshow/image1.jpg" /></li> <li><img src="<?php bloginfo('stylesheet_directory'); ?>/images/slideshow/image2.jpg" /></li> <li><img src="<?php bloginfo('stylesheet_directory'); ?>/images/slideshow/image3.jpg" /></li9 <li><img src="<?php bloginfo('stylesheet_directory'); ?>/images/slideshow/image4.jpg" /></li> </ul>i dont know why it doesnt work without the query_posts string, but it doesnt…