• Resolved falcor200

    (@falcor200)


    Hi I am wondering if its possible to have just one post on the homepage but when someone clicks on a tag or category it can show like 5 posts instead of just one. Is there an easy way to do this? Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter falcor200

    (@falcor200)

    I searched the forum and saw that I should change the <?php get_header(); ?> on the index.php to <?php get_header(); query_posts(‘posts_per_page=1’); ?> and that seemed to work and I was able to have just one post on the home page and 5 posts on the tags and categories etc… But after I added this code on the home page when I click previous post instead of going to the last post it just reloads the same page over and over. Anyone know what I am doing wrong?

    Thread Starter falcor200

    (@falcor200)

    After much searching I have solved the problem. In case anyone needs help in the future I found this thread https://www.ads-software.com/support/topic/185209?replies=9 and it answered my question. The correct way to write it is: <?php get_header(); query_posts($query_string.’&posts_per_page=1′); ?> and not the way I read about before.

    man!!! you rock. thanks for sharing you saved me lots of trouble.
    thanks a million. ^.^

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘One Post on Home Page and multiple posts for Tags?’ is closed to new replies.