Jake Goldman by Jake Goldman download
requires 3.3+
50 votes
26,142 downloads
updated Jan 3 '12

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.

  1. secondary-html-content screenshot 1

    Editing a page with a secondary content block named "Specifications".

  2. secondary-html-content screenshot 2

    Managing secondary content blocks.

  3. secondary-html-content screenshot 3

    Add secondary HTML content to the site using a widget.

120 Replies

  1. 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

    PhillipOctober 22, 2012 at 7:04 amReply
  2. 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!!! =)

    MackanNovember 29, 2012 at 4:26 amReply
  3. 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

    david ButlandDecember 12, 2012 at 2:40 pmReply
  4. Very nice!
    Thanks for putting in the work.

    EdDecember 29, 2012 at 11:19 pmReply
  5. 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!

    MandiJanuary 1, 2013 at 11:26 pmReply
    • Jake Goldman

      I hope to address better integration with support in a future update!

      Jake GoldmanJanuary 7, 2013 at 5:07 pmReply
  6. Absolutely outstanding plugin!! Brilliant.

    mouserJanuary 28, 2013 at 2:41 amReply
  7. 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

    SchalkFebruary 4, 2013 at 3:38 amReply
  8. 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/

    George ButiriFebruary 8, 2013 at 3:53 pmReply
  9. 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!

    Caroline ElisaMarch 6, 2013 at 9:45 pmReply
  10. How can I add table buttons in my secondary content area.

    HemantApril 29, 2013 at 1:23 amReply
    • Jake Goldman

      Install our MCE Table Buttons plug-in and make sure you don’t have “Tiny” mode turned on for that area… ?

      Jake GoldmanMay 10, 2013 at 12:28 amReply
Older Comments

Leave a Reply