Forums

Recent post excerpt in footer (3 posts)

  1. almaline03
    Member
    Posted 8 months ago #

    Hi everyone!

    I am trying to put excerpts from the 2 most recent post in the footer of my blog. Any ideas how to do this?

    I have my homepage set up as a static page and want to lead people into the blog section via the footer.

    Thanks in advance!!

    -Jerrry

  2. almaline03
    Member
    Posted 8 months ago #

    Im still struggling with this. Any ideas?

  3. syncbox
    Member
    Posted 3 months ago #

    I'm looking for an answer for this, too... my initial thought was that the "endif;" function would have to occur IN the footer below a second (or whatever number you needed) loop per the multiple loop examples in the documentation...

    But that hasn't worked as expected, though I supposed it could have been due to other issues rather than the occurrence of endif in the footer.php file.

    Anyone know if closing the loop (using the endif portion there) is a problem? Would it be because the "get_footer" function is inside the loop?

    Curious. Of course, I know I could simply redesign the layout for the bit I want to show up there so that my "footer" either ISN'T called/used at all or it comes AFTER the stuff that is currently placed in the footer.

    Enquiring minds would love to get illuminated about closing a loop in an INCLUDED file rather than in the actual index, category, page, single or archive template...

Reply

You must log in to post.

About this Topic