Divide your post content into parts that you can show in different areas of your theme templates.
If you want to spice up your theme layouts this plugin will allow you to show different parts of your content in different area of your theme templates - break out of a single column of content.
More information can be found on the Content Parts plugin page.
For full details how to implement this plugin visit the Content Parts plugin page.
- Download the archive file and uncompress it (or install it via your WordPress admin).
- Put the "content-parts" folder in the "wp-content/plugins" folder
- Enable in WordPress by visiting the "Plugins" menu and activating it.
If you are not performing an automatic upgrade, deactivate and reactivate the plugin to ensure any new features are correctly installed.
Added wrapper divs around automatically output content parts.
Remove automatic output of <div>
blocks - broke styling on some some sites. Instead provide settings page and content_parts_auto_format_post_types
filter.
Automatically output <div>
blocks around content parts in the main content on single posts and pages. Disable via the content_parts_auto_content
filter.
Add post classes (has-content-parts
, content-parts-{n}
, no-content-parts
).
Added content_part_args
filter and %%part%%
placeholder to before/after strings to replace with content part index.
All functions can now be passed an array of parameters. Deprecate the_content_part()
multiple args - now expects an array.
Validate start
and limit
args are numeric.
Added count_content_parts()
function. props Rory.
View a list of all plugin changes in CHANGELOG.md.