• rrossi

    (@rrossi)


    This is definitely a how to question:

    webpage: https://www.valleyglen.org/temp/general-meeting-minutes/

    First off I do not know code yet, so a simple solution or a really good explanation will help me loads, if possible.

    That being said, what I am after seems to me to be a simple thing. The page link above needs to list the minutes to the organization, (as is shown) how ever, the most recent set of minutes I want displayed in its entirety.

    As a new set of minutes is posted, the most recent set will be displayed and the previous set will go to the top of the list.

    Most plug-ins only seem to want to show an excerpt. I want the formatting of the post and all content to be displayed.

    Is this doable?

    Thanks for reading.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Vishnu

    (@bukge)

    The easiest way to do this is adding to your static page a get_posts call.

    Here’s one example of a minimal Loop of that kind :

    <?php
     global $post;
     $myposts = get_posts('numberposts=5&category=1');
     foreach($myposts as $post) :
     ?>
     <?php the_title(); ?>
     <?php the_content(); ?>
     <?php endforeach; ?>

    You can insert it everywhere in your page : sidebar, bottom … and you can specify how many posts you’ll show (in this case I’ve set up 5), and from which category (you can use too &categoryname=WHATEVER if you prefer).

    Thread Starter rrossi

    (@rrossi)

    Thank you Bukge,

    But not knowing code yet, I not sure how to put that in my specific page.

    I’m sure I have to make a page template for my specific page and include the code there. If that is the case not sure how to set up new page template correctly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Displaying a recent post in a page’ is closed to new replies.