WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] On another site, create links to WP posts (6 posts)

  1. zaccariah
    Member
    Posted 8 years ago #

    I have a math site and on another site I have a WP1.5 blog, where one of the categories is math. I want to pull links from the blog category into the math site (giving a list of links to the latest posts in the math category).

    I gather I need to require (or include?) wp-blog-header.php and then I will have access to the appopriate functions. However, I can't find the functions I need (the closest I can find is the "zeitgeist" div in wp-admin\index.php, but that is not exactly what I want anyway). Also I don't know how to code it, even if I could find the right function.

    I could do it using RSS I guess, but that seems to be a long way around.

    Any help will be greatly appreciated.

  2. davidchait
    Member
    Posted 8 years ago #

    RSS is the best way, IMHO. Something like CG-FeedRead can grab an RSS feed (given the particular URI for the category feed) and then be used to display a list of links to posts in the blog.

    The advantage of the RSS method is that it is lightweight (only FeedRead or other aggregator code is called, no WP), and is cached (versus querying WP and MySQL every pageload of your other site...).

    Just IMHO! ;)

    -d

  3. zaccariah
    Member
    Posted 8 years ago #

    Thank you - RSS is the best solution. I have implemented CG-FeedRead and it works fine.

    But I want to pull posts just from one category, not all posts. I fiddled with feeding it thing like wp-rss2.php?cat=4 (since your post had "given the particular URI for the category feed") and also using the filter function in Feed-Read, but with no luck.

    Any suggestions?

  4. zaccariah
    Member
    Posted 8 years ago #

    Hello? Can anyone help me with this, please?

  5. The following link will return the rss2 feed for the mathematics category on your blog:

    http://squarecirclez.com/blog/index.php?cat=4&feed=rss2

    hope this helps.

  6. zaccariah
    Member
    Posted 8 years ago #

    Brilliant. Thank you so much.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags