• Resolved zaccariah

    (@zaccariah)


    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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

    Thread Starter zaccariah

    (@zaccariah)

    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?

    Thread Starter zaccariah

    (@zaccariah)

    Hello? Can anyone help me with this, please?

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

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

    hope this helps.

    Thread Starter zaccariah

    (@zaccariah)

    Brilliant. Thank you so much.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘On another site, create links to WP posts’ is closed to new replies.