• Hello guys!

    Sorry for disturbing you, but I have a question connecting to my WordPress website. The most important thing is that I want to write articles, but I don’t want to display every articles on my blog page (which is my home page as well).

    Can I do it? How? Do I need to install a plugin?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi

    Look at the file called index.php – in there you’ll see this line

    <?php while( have_posts() ) : the_post(); ?>

    insert the following query argument above that line

    <?php query_posts( ‘posts_per_page=1’ ); ?>

    Hope this helps

    Regards
    Gravesy

    Thread Starter András Fischer

    (@fischerandris)

    Thanks, but with that code which posts will be displayed?

    The last post that was added

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Don't want to show every posts on the blog page’ is closed to new replies.