WordPress.org

Support

Support » How-To and Troubleshooting » Linking to posts from 1 category from outside of WP

Linking to posts from 1 category from outside of WP

  • 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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • i should add that I’ve been achieving this with RSS feeds so far, but want the added flexibility of using only PHP.

    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

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Linking to posts from 1 category from outside of WP’ is closed to new replies.