Forums

Retrieving headlines from secondary blogs (4 posts)

  1. ctw
    Member
    Posted 1 year ago #

    I am designing a site built on Wordpress and I have the WP files installed at http://www.domainname.com/main. Everything is working fine. There are going to be some separate blogs and I have installed a test blog at http://www.domainname.com/blog1. I configured the wp-config file for that blog to point to the same database, but create tables with a different prefix. A solution I found on the WP site for installing multiple blogs.

    The secondary blog is working fine, but I want to pull the newest headline (hopefully with permalink) to the pages of the main blog. I have been completely unsuccessful so far. Can anybody please give me some ideas or point me to a resource online for doing such a thing. I figured it would be pretty simple to just pull the newest post_title from the blog1_posts table.

    Thanks.

  2. moshu
    Member
    Posted 1 year ago #

    No, you use RSS feeds for that, you don't mess with the database.
    A very simple solution is described here:
    Function_Reference/fetch_rss

  3. ctw
    Member
    Posted 1 year ago #

    Thanks, I'll give that a shot.

  4. ctw
    Member
    Posted 1 year ago #

    That worked great! Do you happen to know the syntax for other variables you can pull like date and author? I didn't see any info regarding that on those pages.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.