• My website has several different categories, how would I configure wordpress to allow me to add a post to a specific page?

    And, ideally, link to it from the index page.

    Cheers

Viewing 8 replies - 1 through 8 (of 8 total)
  • you can create a page for each category and add this to page template
    it will show you posts of particular category

    <?php
    				query_posts(array('category_name' => 'news','posts_per_page' => '4','post__not_in'=>get_option('sticky_posts')));
    			?>
    			<?php while (have_posts()) : the_post(); ?>
    
    		<div class="post" id="post-<?php the_ID(); ?>">
    			<h3 class="bg">
    				<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
    			</h3>
    				<p><?php the_post_thumbnail(array(250,250), array ('class' => 'alignleft')); ?></p>
    				<p><?php the_excerpt(); ?>

    you need to add your category name here “‘category_name’ => ‘news’,”.

    Thread Starter testify1988

    (@testify1988)

    That’s no help whatsoever but cheers anyway.

    for showing post from particular category on a page you need to create a page and use a template in which you can write above code just customize it. Than you have all the post from one category.

    Thread Starter testify1988

    (@testify1988)

    I don’t even know what that means.

    You have a custom theme across the entire site, how is it even possible to have a different theme for each page?

    Thread Starter testify1988

    (@testify1988)

    Sorry Santosh, I did not see your earlier post.

    I will try that now.

    before implementing this you need to create page templates for each category. I hope you know how to create page template.

    Thread Starter testify1988

    (@testify1988)

    yeah, that just gives me an error.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Posts on different pages?’ is closed to new replies.