Posting posts in a certain category to specific pages
-
Hi,
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <h1><?php the_title(); ?></h1> <?php the_content(); ?> <?php endwhile; else: endif; ?> <?php query_posts('cat=6'.get_the_title().'&post_status=publish,future');?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1> <p><?php the_content(); ?> <?php endwhile; else: endif; ?>
I’m using that code to post posts in specific categories to specific pages on my wordpress blog. It does what I want it to do but it seems to continuously loop and keep posting as your scroll down.
Can anyone help me with this?
Cheers
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Posting posts in a certain category to specific pages’ is closed to new replies.