WordPress.org

Ready to get started?Download WordPress

Forums

Is there an easy way to reference my last blog posts outside of WP, (4 posts)

  1. crutchboy
    Member
    Posted 6 years ago #

    I need some html to quick reference the list of last posts on my blog to my index.

  2. Keilya
    Member
    Posted 6 years ago #

    I don't get what you mean "outside of WP" but this code is for getting recent posts you've made with WP:

    <?php wp_get_archives('type=postbypost&limit=10&format=custom&before=&after='); ?>

    'limit' is the number of posts you want it to fetch, I forgot what's format for. (You can search the Docs/Codex for this.) 'before' and 'after' are just areas for you to enter HTML to help in this display. Optional of course.

  3. crutchboy
    Member
    Posted 6 years ago #

    I need to just reference my Recent Blogs onto the front of another website that is not on blogetery.com. Is there a URL to list them?

    if you look at http://www.busygamer.com, i want to list the last posts on the bottom right. im new to this so i was wondering if there was quick url or code to pull the listings from.

  4. Keilya
    Member
    Posted 6 years ago #

    I think it's possible. If the 2 websites are on the same server it should be easier for busygamer to fetch the recent posts from the database. Even if they're on different servers, there's always remote SQL access.

    Sadly I don't know how to do either of them, so you gotta wait for a pro to hope by. lol.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.