=== Juicebox Shared Content === Contributors: juiceboxint Requires at least: 4.0 Tested up to: 4.6.1 Stable tag: 2.0 License: MIT License URI: https://opensource.org/licenses/MIT Allows content to be included inside of other content areas via a shortcode. == Description == Allows content from one page or post to be included inside the content of another via a shortcode. Also creates a post type called "Shared Content" for content fragments whose only purpose is to be included in other pages. Update the shared content item and it will be updated on each page that uses it. Shared content is included like this: ` This is some page text. [include id="500"] This is some more page text. ` If the page content of ID `500` is `This is some shared content.`, the rendered content will look like this: ` This is some page text. This is some shared content. This is some more page text. ` If on a network include the site id in the shortcode like: ` [include id="500" site="1"] ` The post type doesn't matter. It can pull content from any post type into any other post type as long as they both use a standard content area. In many (or most) situations, though, you don't actually want a page to exist if its only purpose is to be included in several other pages. Because of this, the plugin also creates a new post type called "Shared Content". These shared content items are non-public and visible only in the admin. They can only be viewed on the frontend of the site if they are included inside other pages. == Installation == 1. Upload the `jb-shared-content` directory to the `/wp-content/plugins/` directory. 2. Activate the plugin through the "Plugins" menu in WordPress. 3. That's it. As an admin, you should now see the "Shared Content" post type. == Frequently Asked Questions == = Is this plugin secure? = It's secure from the outside world, but it is not secured against internal users. If a user has access to the editor of one post type, they could include the content of another page or post by ID even if they don't have authorization to view that content, and they can even publish it to the outside world. Only the security of the original page is taken into account. If you have any hidden or protected content on your site, and any users you don't trust (especially curious ones), you're using this at your own risk. It was designed for sites with a lot of content that is managed by a small number of people. = Who can use shared content? = Anyone can use the shortcode if they have access to the editor. They can include the content of any page inside any other page as long as they have permission to view or edit the original page. By default, only administrators can create, edit or delete Shared Content items. If you need editors, contributors or other roles to be able to create and use shared content, you will need to install the [Members](https://wordpress.org/plugins/members/) plugin and add the following permissions to those roles: `read_shared_content`, `edit_shared_content`, and `delete_shared_content`.