Search code examples
wordpressnetwork-programmingpostselementormultisite

Display blog posts in a multisite network (Wordpress) across websites


First of all: I don't know if I'm just too stupid for this, but I've already googled it and tried various solutions (codes inserted in the functions.php or even downloaded plugins) but my problem hasn't been solved. Maybe you know more.

My setup:

  • Wordpress Multisite installation with two websites: --> One website is the "main site" --> The other website is the "blog site"

  • The websites were created with Elementor.

Now I would like to display the posts from the "blog website" on the home page of the "main website" using the default Elementor layout for posts.

Isn't it possible that Wordpress simply accesses these posts? As far as I know, they are even in the same database? The few plugins that are available have to be styled too much with CSS - that wouldn't be worth it. Above all, the plugin I tested didn't even work (Network Posts Extended).

What I also don't want is that the posts are simply duplicated, because then I wouldn't need two websites. So ideally when you click on a post, you get redirected to the "blog website".

Hope you know what I mean. Thanks


Solution

  • For everyone to know how I solved this problem:

    • It didn't work with any of these plugins for multisite blogs etc.
    • also didn't any code work

    Instead I installed the plugin "WP RSS Aggregator" and bought their premium extension called "templates" so you can customize how the posts look like. In the plugin, you define the RSS Feed it should get the posts from (in my example the "blog site") and set it up like you need it.

    That's all, it worked perfectly.