WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Pull latest posts from sub-domain (5 posts)

  1. Angela
    Member
    Posted 2 years ago #

    I have a multisite installation with 2 sub-domains, one of them is a blog. I have a plugin that allows me to arbitrarily insert PHP code, and I want to create a piece of code that allows me to pull the latest posts from the blog sub-domain.
    However, I have no idea what functions should I use, or even, that I need to write a function myself? I previously tried a plugin called diamond widget, but it didn't work very well.

    Angela

  2. danhgilmore
    Member
    Posted 2 years ago #

    http://wordpress.org/extend/plugins/wordpress-mu-sitewide-tags/

    This plugin will allow you to pull posts from any blog and display them on the main blog page.

  3. whiteatom
    Member
    Posted 2 years ago #

    This is a modification of the "loop". There are some examples of how to use WP_query on the codex.. but I don't think this will allow you to pull posts from a separate site.

    Do you truly need a separate site? Or could you just create a post category and template that page differently. I've found that most of my clients who want something like this don't actually need a sub-site.. just a category.

    whiteatom

  4. whiteatom
    Member
    Posted 2 years ago #

    ahh.. and that plugin looks like it will do it for you.

  5. Angela
    Member
    Posted 2 years ago #

    Thanks, I will try it out.

Topic Closed

This topic has been closed to new replies.

About this Topic