WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Secondary HTML Content

Add additional HTML blocks to any post type. Perfect for layouts with distinct content blocks, such as a sidebar or two column view.

  1. Install easily with the WordPress plugin control panel or manually download the plugin and upload the extracted folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Define new secondary HTML blocks using the new Secondary HTML Content section on the Writing settings page.
  4. Start entering secondary content by editing your content!
  5. Output secondary blocks by using the Secondary HTML Content widget (Appearance > Widgets) or by using the get_secondary_content() and the_secondary_content() functions in your template!

Theme Code Example

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.

Requires: 3.3 or higher
Compatible up to: 3.3.2
Last Updated: 2012-1-3
Downloads: 31,830

Ratings

4 stars
4.7 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,2,2 100,1,1
100,2,2
100,1,1 0,1,0
100,1,1 100,4,4
100,4,4
86,7,6
100,2,2
80,5,4
100,2,2
100,1,1
0,1,0
67,6,4 0,1,0
14,7,1 67,3,2 100,1,1
75,12,9
100,1,1
100,3,3
100,4,4
100,2,2
100,1,1