mk1rs2000
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Fixing WordPress
In reply to: security issuesThanks for this, would you recommend that i should install an SSL, i do not have any transactions going through the site but i do want to be sure that this does not happen again.
Forum: Fixing WordPress
In reply to: display multiple posts by IDhi vtxyzzy, thanks for the post, tried that & stilll cant get it to work, even when i edit the code i can still only show 1 post, heres the entire page
<?php get_header(); ?> <div class="col1_home"> <div class="col1_home_box"> <?php include(TEMPLATEPATH . '/includes/featured.php'); ?> </div><!--/col1_home_box--> <div class="col1_home_box"> <?php if (get_option('woo_layout') == "true") include('layouts/blog.php'); else include('layouts/default.php'); ?> </div><!--/col1_home_box--> <?php // Display Video include(TEMPLATEPATH . '/includes/video.php'); ?> </div><!--/col1_home--> <div class="col_mid_home"> <div class="mid_box"> <?php $count = 0; $duplicated = array(); $cats = get_categories(); foreach ($cats as $cat) { $the_query = new WP_Query('showposts=3&posts_per_page-1&p=43,41).'.$post->cat_id); while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID; ?> <?php $show = true; foreach ( $duplicated as $test) { if ( $test == $post->ID) { $show = false; } } $count++; $duplicated[$count] = $post->ID; if ($show) { ?> <div class="post-alt blog"> <p class="category"><span><?php echo $cat->cat_name; ?></span></p> <h2><a title="<?php _e('Permanent link to ',woothemes); ?> <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> <p class="posted_on"><?php _e('Published on',woothemes); ?> <?php the_time('d F Y'); ?> <?php edit_post_link(__('Edit'), ' · ', ''); ?></p> <div class="entry"> <?php the_excerpt(); ?> </div> </div><!--/post--> <?php } ?> <?php endwhile; ?> <?php } ?> </div> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
p=41,43 relates to 2 of the posts that id like to display.
thanks so much for the help.
Viewing 2 replies - 1 through 2 (of 2 total)