WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Twelve
[resolved] Making a Recent Posts Page (10 posts)

  1. chaplaindoug
    Member
    Posted 1 year ago #

    Twenty Twelve Theme.

    When setting what will be your front page, you can select either "Recent Posts" or "Static Page." I like the look of the "Recent Posts" page, but do not want it to be the front page. Is there a way to create a page that looks just like the "Recent Posts" page? Thanks for any help.

  2. chaplaindoug
    Member
    Posted 1 year ago #

    I found these two links. Was able to copy and paste the php for the page of posts template and place that template in my child theme folder.

    http://wordpress.org/support/topic/page-of-posts-twenty-twelve?replies=11

    http://www.transformationpowertools.com/wordpress/page-of-posts-template-for-twenty-twelve

  3. chaplaindoug
    Member
    Posted 1 year ago #

    Does anyone know how I would limit the number of posts displayed on the page of posts? Also, is there a way to make the template show the most recent post in its entirety, but just an excerpt from any subsequent posts?

  4. skjha
    Member
    Posted 1 year ago #

    How are you getting your front page to use your page of posts? I made a child page of posts for the blog part of my site that only gets a specific category of posts. I also want the look of "recent posts" for my front page but don't want anything but sticky posts to appear.

    RE your limiting the number of posts: I did find (a really old) page about limiting the number of posts
    here
    This page has a couple of examples about limiting the number of posts. The second example (excerpt below) looks like it may be helpful.

    <?php query_posts('showposts=5'); if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    	<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
    	<p>?php the_time(); ?></p>
    	<?php the_content(); ?>
    	<p><?php the_tags(); ?></p>
  5. Gary Allman
    Member
    Posted 1 year ago #

    @chaplaindoug, if I understand you correctly, what you wanted to do is a standard feature within WordPress without any code changes at all. So I'm probably misunderstanding something...

    However, here's how to achieve this effect without code:

    • Create a page to act as your home page.
    • Create a another page, doesn't matter what goes on it as the content will be ignored.

    From the dashboard, settings-> Reading, Select 'A static page' as your home page, selecting the first page you created above to be the home page. Then select the second page you created above to be your posts page.

    You can limit the number of posts by Adjusting the 'Blog posts to show at most' which is the next field in the settings form.

    Add a link to the blog posts page in your menu and you are done. You'll get a page of recent posts, and a home page you can style however you want.

    The above might be an easier route if you don't want to mess with code.

    This website I created: http://www.ionahighlandtours.com/ uses Twenty Twelve and the above technique. The Blog posts are listed on the 'Tour Blog' page from the menu. By using 'More' the site owner can control how much text appears on the Blog Posts page. Nice and simple.

  6. chaplaindoug
    Member
    Posted 1 year ago #

    Gary:

    Thank you for taking the time to reply. Unfortunately, I need to have multiple pages that behave as I describe. Hence, the "Home Page" and "Posts Page" will not provide a full solution.

  7. Gary Allman
    Member
    Posted 1 year ago #

    Just checking in - @chaplaindoug did you find a solution, or are you still looking for one?

  8. chaplaindoug
    Member
    Posted 1 year ago #

    Gary:

    I found a solution to the issue by making my own template. See my solution at:

    http://wordpress.org/support/topic/how-to-display-just-one-post-on-a-page-of-posts?replies=7

  9. Gary Allman
    Member
    Posted 1 year ago #

    Excellent - that's what I've done with my sites, and this was going to be my next suggestion.

    (BTW You can mark this thread as resolved if you are happy with the solution).

  10. chaplaindoug
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic