WordPress.org

Ready to get started?Download WordPress

Forums

Linking to posts from 1 category from outside of WP (4 posts)

  1. Adam_C
    Member
    Posted 7 years ago #

    I have WordPress 1.5 installed on a site to manage a blog/news section. I want to display links to the latest 5 posts from a category from different sections of my site.

    For example, on my RedWidgets section I want to link to the latest 5 RedWidgets blog posts with the headline and short summary description.

    Does anyone know how I can do this with PHP?

  2. Adam_C
    Member
    Posted 7 years ago #

    i should add that I've been achieving this with RSS feeds so far, but want the added flexibility of using only PHP.

  3. davidchait
    Member
    Posted 7 years ago #

    i should add that I've been achieving this with RSS feeds so far, but want the added flexibility of using only PHP.

    Can you explain this? RSS aggregation is the preferred method for implementing any kind of sidebar list, especially as it is (generally) cached and thus doesn't hit WP every time your non-WP pages load...

    -d

  4. Adam_C
    Member
    Posted 7 years ago #

    really?

    In that case, I guess I need a better PHP RSS parsing script that allows caching and gives flexibility with the number of items to display.

    --------

    even so, I'm still interested in the practicalities of using PHP to extract stuff from the WP database outside of the WP environment.

    I'm sure there are many different things that can be done this way that RSS wouldn't (easily) allow.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags