Wordpress Multisite how to post once on all sites

Asked

Viewed 206 times

0

My question is this:.

I have two themes that I created, one is the main one, has two custom fields for post, where I would put all the content in it, at the time of displaying, it would show me only one part of the post, and the other theme, the other part so far is okay, the problem is, how to duplicate this post automatically on both sites?

I need that when making a post, all sites automatically post the same content, a copy.

I don’t know if I was clear enough.

  • Point all domains to the same wordpress, and select the theme based on $_SERVER['HTTP_HOST']

  • At the time of save_post, you have to make a switch_to_blog and update the other sites. Only with these two Keywords you already find something in [so] or [wordpress.se]. If you can search, and it doesn’t work, just edit the question with some code and tap.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.