nslatter
Forum Replies Created
-
Forum: Alpha/Beta/RC
In reply to: Missed ScheduleDo you know where I can find the webserver requirements/specification for WP ?
This would help me as well. I took a huge step in doing VPS hosting a week or so back so can do whatever I want to the server. Thanks!
Forum: Alpha/Beta/RC
In reply to: Missed Scheduleupdate: I installed another instance of WordPress just to test — and that install doesn’t work either…
Forum: Alpha/Beta/RC
In reply to: Missed ScheduleI’m having the same problem. That said, I’ve three different sites all of which use scheduled posting and are located on the same server. Two of them work, one of them doesn’t. What do I need to look at in this case?
Forum: Fixing WordPress
In reply to: Loop based on week…I figured out an option. I’m not sure how pretty it is because I know little about PHP but here is what I did in case, by some chance, someone else would like to do it as well — or if anyone would like to tell me that I can do this easier.
<?php $today = date("l"); ?> <?php if ($today == Monday): ?> <?php $my_query = new WP_Query('showposts=1');?> <?php elseif ($today == Tuesday): ?> <?php $my_query = new WP_Query('showposts=2');?> <?php elseif ($today == Wednesday): ?> <?php $my_query = new WP_Query('showposts=3');?> <?php elseif ($today == Thursday): ?> <?php $my_query = new WP_Query('showposts=4');?> <?php elseif ($today == Friday): ?> <?php $my_query = new WP_Query('showposts=5');?> <?php elseif ($today == Saturday): ?> <?php $my_query = new WP_Query('showposts=6');?> <?endif; ?>Then followed it with the normal WP_Query loop:
<?php while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID;?> <a href="<?php the_permalink() ?>" class="contentitle" title="<?php the_title(); ?>"><?php the_title(); ?></a> on <?php the_time('d. M Y') ?> in <?php the_category(','); ?>. <?php the_content("Continue reading " . the_title(' ', '´', false)); ?> <?php endwhile; ?>