WordPress.org

Ready to get started?Download WordPress

Forums

Home Page Plugin + Recent Posts (6 posts)

  1. beley
    Member
    Posted 8 years ago #

    I tried searching, so if this has already been asked I apologize. Please post the link if it has.

    I have insalled the Home Page plugin that allows the use of a static page with "home" as the default page. I love this feature as I'm trying to use WP as the backend for my main website (service company) and will have several static pages (including the home page).

    However, I would also like to display the most recent posts at the bottom of the static content on the static "home" page. Is this possible through a custom template (you can assign the home page it's own template)?

    If so, what code would I need to use and where would I need to put it? I'm fairly experienced with PHP, CSS, etc. so I can edit any files neccessary. I just haven't the time to go through the files line by line to try and figure it out. If anyone else has encountered this I'd appreciate any help possible.

    BTW, I know I can simply edit the index page and put static content in there w/out using the plugin. I want to be able to edit the home page text through wp-admin.

    Thanks!

  2. drobbins
    Member
    Posted 8 years ago #

    I like to use the crc_recent_post plugin, or something like that. Just throw in a call to the Loop, plug in the code , and close the loop; Here is an example:
    <?php c2c_get_recent_posts(10, '%post_URL%<br><span>%post_date%</span><br>', '', 'date', 'DESC', 3, 'm/d/Y', '', false); ?>

    So that is the last 10 posts' titles and dates (you can also add the content, and even a preview - short or long - of the content). Just make sure to wrap that with the Loop.

  3. beley
    Member
    Posted 8 years ago #

    Thanks but I can't seem to find the crc_recent_post plugin anywhere... got a link to it by chance?

  4. drobbins
    Member
    Posted 8 years ago #

    Here ya go. Sorry, I couldn't remember exactly what it was called - it is customizable post listing.php, something like that. If you can't find it there let me know and I can send you the one I have here. It's really great, and yuo can do all kinds of things with it.
    It's there - I just checked .... custom-post-listings.zip

  5. drobbins
    Member
    Posted 8 years ago #

    Now that I am looking at it, you may not even have to call that in the loop - check the documentation; you may can just stick it in wherever.

  6. beley
    Member
    Posted 8 years ago #

    Thanks, that worked great!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags