Forums

Pulling posts from one WP to another on same site (6 posts)

  1. Mark
    Member
    Posted 5 years ago #

    I am curious if I can pull posts from one WP to another WP blog that is on the same domain name? I already added this code to the top of the secondary blog:

    <?php require('./../news/wp-blog-header.php'); ?>

    I have a "news" blog and a "buzz" blog. I want the buzz blog to have a little box on the sidebar that pulls certain posts into a section of the buzz blog. I added that same code above to all of my other pages and am successfully pulling the information that I want. But now I have a 2nd WP site setup (buzz) and want to do the same thing. I don't know how to tell the PHP code to pull the posts from from the News blog and not the Buzz blog for that one section.

    Anyone have any ideas?

    Thanks ahead of time for your help:)

  2. Mark
    Member
    Posted 5 years ago #

    No one's ever had more than one blog on one domain and share info back and forth?

  3. You'll have to manually query the database.

  4. Mark
    Member
    Posted 5 years ago #

    How would I do that? This isn't that big of deal for me, but something that I would like to implement somehow.

  5. How would I do that?

    It's a bit much to explain on a forum. I'd advise you to hire someone to do the work if you can't do the MySQL/PHP.

  6. Mark
    Member
    Posted 5 years ago #

    lol. ok. no biggie :)

    thanks mate!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.