Jake Goldman by Jake Goldman download
requires 3.3+
39 votes
17,930 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.

76 Replies

  1. Great plugin!

    comceptionApril 15, 2011 at 6:59 amReply
  2. Hello,

    Congratulation: very usefull plugin…
    Just a question: is there an easy way to add a custom #id or .class to each secondary_content block when it’s used in the content page?
    Thank’s again for your job.
    Best
    Vinchoz

    VinchozMay 9, 2011 at 4:24 amReply
  3. Hi,
    I’ve had difficulty in getting the plugin to work by using the function method, it must be something I’m doing wrong in my theme as I’ve got the same problem on a new project.

    Can you take a look at my query at http://wordpress.org/support/topic/plugin-secondary-html-content-content-doesnt-display-within-the-loop and let me know if that is a problem?

    Thanks!

    JoffMay 12, 2011 at 8:04 pmReply
  4. Is this compatible with WP3.1 ?

    I try to believe that it is, but considering the timeline here. V2.0 of this plugin is from March 2010 ( more than a year now )

    PaulMay 14, 2011 at 2:54 amReply
    • Jake Goldman

      It should be, but I’m working on an update to add better support for newer features like custom post types.

      Jake GoldmanMay 14, 2011 at 12:10 pmReply
      • That’s impressive.

        Thanks for the reply.

        PaulMay 20, 2011 at 7:46 amReply
  5. Hi Jake:
    This is probably my misunderstanding, but, in a site I’m working on in which I’m using the plugin, the extra HTML fields are appearing on ALL site pages in the admin/editor, but I’d like them to only appear in the one page (the home page) that I want to use them on. I have a special template for the homepage – the homepage is not a blog – and my other site pages are built from the page.php (default) template. But the extra HTML fields show up on those pages in the admin as well. Does that make sense?

    On my homepage template, I’m using these codes:

    for the three additional fields.

    In the settings page I deselected the 2 options: inherit from Ancestor and Treat Home as Top Ancestor but that didn’t seem to make a difference.

    I built the theme. See site at http://www.wildwoodmusic.com
    The homepage, once again, is the only page where I want to use extra HTML fields. Is it just a feature of the plugin that if you use fields in any template that they’ll appear on all pages?

    Thank You for any assistance! I’m thrilled with the plugin – just want to use it correctly!

    PaulaMay 23, 2011 at 7:52 pmReply
    • Jake Goldman

      Yes. It’s not page by page.

      Jake GoldmanMay 26, 2011 at 10:06 amReply
  6. Hi Jake:

    I love this plugin and it is a godsend for one of my websites. I asked earlier if it was possible to limit the extra windows to specific pages and you said no. I’m not a php person (though I’m starting to look into it because it would help me so much!) so this is also probably a “no” but, would it be possible to use a conditional tag somewhere?

    Also, just want to clarify this – on the site where I used this I needed extra windows only for the homepage. But, as noted, the extra windows then appear in the admin page Editor windows for every page. On other pages, I can put completely different content in those secondary boxes, right?

    Thanks in advance. Those of us using WP as a CMS really really need something like this – it is a terrific idea.

    PaulaJune 10, 2011 at 9:19 pmReply
  7. Hi Guys,

    Feature request, there seems to be no way to switch to an HTML view, which can sometimes make formatting hard. This would be a great feature in a future version. If it had that I’d be donating, or even very happy to pay for the plugin.

    Adam GriffithsJune 16, 2011 at 5:58 pmReply
  8. I like this plugin. How do I insert video code? There used to be a HTML view button, which had a popup box to insert HTML code.

    JonathanJune 21, 2011 at 5:47 pmReply
    • I did find the HTML button.
      I discovered the problem is that it doesn’t show the new Vimeo code. It does show the old version of the Vimeo code.

      JonathanJune 21, 2011 at 6:36 pmReply
  9. Hi!

    I used this plugin on a site for a client last year and it worked perfectly. I don’t remember having any difficulty getting it to function properly.

    I’m adding onto a new site for this same client and I can’t get the content to show on the sidebars.

    I was using the WYSIWYG widget and the TS Custom widgets plugins… I thought maybe there was a conflict there, so I deactivate them but still the secondary content isn’t showing.

    Is there a known issue or a troubleshooting guide I can see? I really need this to function and I’m a bit perplexed on what I’ve managed to do differently in the setup.

    (love this plugin, btw – it’s brilliant!)

    Thank you for any insight!,
    Karla

    karla porterJune 27, 2011 at 8:54 amReply
  10. (nevermind — I figured it out. Not sure what was conflicting with it, but it’s all better!)
    :)

    karla porterJune 27, 2011 at 10:13 amReply
    • Hello Karla, I’m having the same problem you had with the content not showing on a new site. Can you tell me what you did to solve the problem? Thanks!

      Peter ReidJuly 5, 2011 at 4:08 pmReply
Older Comments

Leave a Reply