tallulas
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to modify loop to split posts into groups of threes?Many thanks guys, i loled at this:
(the whole code looks as if someone tried to gather a bunch of flowers with the lawnmower …)
im a complete noob to code of any kind, does it show?
??
Forum: Fixing WordPress
In reply to: How to modify loop to split posts into groups of threes?I am using the exact same thing .. i wonder if youy can help .. i am calling 5 items at a time so changing the 3 to a 5 is no problem!
However what i need to do is change the above algorithm so that if there are say only 7 posts only 2 divs are created.
If there are 100 posts then 20 divs would be created?
<div class="items"> <?php $my_query = new WP_Query('cat=Lounge&showposts=25query_posts&post_status=future,publish'); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID;'&order=ASC&post_status=future,publish' ?> $i=0; // counter while(have_posts()) : the_post(); if($i%5==0) { // if counter is multiple of 5, put an opening div ?> <!-- <?php echo ($i+1).'-'; echo ($i+5); ?> --> <?php the_post_thumbnail();?> <div> <?php $i++; if($i%5==0) { // if counter is multiple of 5, put an closing div ?> <?php the_post_thumbnail();?> </div> <?php } ?> <?php if($i%5!=0) { // put closing div here if loop is not exactly a multiple of 5 ?> <?php the_post_thumbnail();?> </div> <?php } ?> <?php endwhile; ?> </div>
Forum: Plugins
In reply to: How to output data into an arrayYou see what i need to do is output the image, title and permaling, overlay on a slide and then display 5 slides at once fro the slideshow. So I guess i want to use an array and output the five items as one list item..
Forum: Fixing WordPress
In reply to: embedding blog in iframeOk i solved all this, thx macmanx!
For the record i am not displaying the date just the last seven posts … and then adding the deate as an excerpt .. that way the client can schedule the posts in advance but add their own dates where and when they need it.
Just ran into this problem too .. i made the directory in plesk and then right clicked on the folder in Filezilla, made sure it was set to 777 and then clicked the
. recurse into subdirectories…