Secondary HTML Content 3.0.1 for WordPress
Add extra HTML blocks to your content. Perfect for multi-column, tabbed, and page-based sidebar layouts.
Add unlimited extra HTML content blocks to pages, posts, and custom post types. A perfect solution for layouts with distinct content “blocks”, such as a sidebar or multi-column view. When editing content, the secondary editors appear beneath the usual editor.
Name the new content blocks you want to create anything you like, and assign each block to any of your site’s public post types (posts, pages, etc). Hierarchical post types, like pages, can optionally inherit their content from ancestors (including their parent page); perfect for section wide sidebars. Each block can individually be customized to offer media buttons and the full or more stripped down version of the editor.
Secondary content can be added to your site by using the Secondary HTML Content widget. Theme developers can also call secondary blocks by using the built in functions (see “Installation”).
REQUIRES WordPress 3.3 or newer.
Outputting Secondary Blocks in Your Theme
the_secondary_content( 'More Info', 20 );
Prints out content from the secondary block named “More Info” assigned to page ID 20.
the_secondary_content( 'Contact Information' );
Prints out content from the secondary block named “Contact Information” for the current post.
the_secondary_content();
Prints out content from the first secondary block assigned to the current post type, for the current post. Useful in situations where there is only one secondary content block.



Great plugin
Is there a way to hide extra content blocks (in WordPress backend) if they are not available on a template that is assigned to a page/post? If you get my drift… Phil
Hello!
I wonder if there is possible to show this extra content block on only one specific page. I my case i would like to show this extra fields only on the page I created for the “home page”.
Great plugin btw!!! =)
So … what you’ve done seems just right.
I have set the secondary block to be given with pages, and it appears as expected when I create a new page.
HOWEVER:
1. I have created a test (non-published) page and filled in both components. However the “Just Look” secondary block does not appear if I preview the draft page.
2. I would normally want to populate the contents of the secondary area in response to activities in the primary area. I am using php. Can I communicate between them?
David Butland
Very nice!
Thanks for putting in the work.
First of all, thanks for this effective and easily customizable plugin!
I am, however, having an issue that seems to have also plagued others in the Support section on WordPress.com. Namely, search integration. When I search for a term that I know exists in a secondary content block, the search returns nothing. Do you have some ideas as to how I can make sure this content is being searched along with its parent post? Thank you!
I hope to address better integration with support in a future update!
Absolutely outstanding plugin!! Brilliant.
Hi,
I managed to display the secondary content successfully here: http://www.botriverwines.com/wineries/barton/
But I am trying to display another secondary block of content in a loop here, but it doesn’t display: http://www.botriverwines.com/directory/
Hope you can help.
many thanks
Hey, great plugin. Took me a while to figure out that the “block” you speak of is the label name specified in admin, but once I got that, I kind of extended on it with my own plugin. Check it out sometime, maybe you can incorporate it in your plugin. http://okmaya.com/wordpress-plugin-for-pinboard-theme-and-secondary-html-content-plugin/
Hi Jake,
Wondering if there is a way I can include Secondary HTML Content in my sidebar in a way that doesn’t bring up an empty widget on pages without any Secondary HTML Content set?
At the moment, using Hybrid and adding the Secondary HTML Content widget to the Primary widget area, I get an empty div on every page plus “primary-active” in the body-class.
The latter issue is the biggest as this is affecting my layout.
Hoping you can help.
Thanks!
How can I add table buttons in my secondary content area.
Install our MCE Table Buttons plug-in and make sure you don’t have “Tiny” mode turned on for that area… ?