Home Forums Backend Issues (wp-admin) Using Post Object field in Multisite


Using Post Object field in Multisite

  • hello,

    Is it possible that by using the “Post Object” field retrieve the post from another blog.

    First – I choose Blog.
    Secend – I choose post/page – from selected blog

    I have a current blog and separate blogs for each edition which wants to retrieve post-object from the home page.

    – Current
    – 2013
    – 2012 – get posts-object from Current
    – etc

  • Hi!

    Not as is. The post object only retrieves posts from the current wp_posts table in the database. Each blog in a Multisite get’s their own wp_posts table.

    You could add this code yourself .. I think best practice (without too much hassle) would be to in the field-file check if this is a multisite. If so output another option where when setting upp the field you choose from which blog to fetch posts.

    Thing is that this would not allow you to retrieve posts from multiple blogs in the same post-object field. The issue with retrieving a lot of posts from many different blogs is mainly performance. For each post the code would have to switch over to a different wp_posts table and do another query.

    I think you should have a look at the post indexer plugin from wpmudev:

  • Hey, thanks for the replies
    Unfortunately, this plugin does not meet the requirements of all supported the project

    Its not solved:/

  • This reply has been marked as private.
Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Using Post Object field in Multisite’ is closed to new replies.