Hi! Thank you for this amazing plugin ??
Since this bit of code hasn’t been updated in a while, there is an issue with the way how the parent constructor of WP_Widget is called.
Line 513 in the file secondary-html-content.php has to be changed from
$this->WP_Widget( 'secondary-html-content', __( 'Secondary HTML Content', 'secondary_html_content' ), $widget_ops );
to
parent::__construct( 'secondary-html-content', __( 'Secondary HTML Content', 'secondary_html_content' ), $widget_ops );
Would be nice if you could integrate this change in an update.
Thanks,
Thomas
I have a wordpress plugin called Secondary HTML content which I use to put different keywords on different pages, posts and custom posts.
There is a function in the plugin to inherit from ancestors and treat the home page as the ancestor.
If i leave the secondary html content blank on a particular page it is filled in with the content from the home page, however if I do this for a post or custom post type the content does not get filled in.
Is there anyway to make posts and custom posts see the home page as the ancestor instead?
https://www.ads-software.com/plugins/secondary-html-content/
]]>Hi
I have several content blocks set up and I have lettered them A – O.
For some reason my Block E is going to the bottom of the admin page. The menu order in the database made sure that my blocks show in the correct order (backwards of menu order). But One block is showing in the wrong spot at the bottom of my admin page. Under SEO Yoast plugin.
This doens’t happen on the local version of the site, but some reason it does on the live one, even though files are same.
What actually controls the order of these blocks appearing on the admin screen?
Funnily enough, the E block went down on the actual page too. Even though my PHP shows this, and the E block ID is 33.
<?php the_secondary_content( 28 );?>
<?php the_secondary_content( 29 ); ?>
<?php the_secondary_content( 30 ); ?>
<?php the_secondary_content( 31 ); ?>
<?php the_secondary_content( 32 ); ?>
<?php the_secondary_content( 33 ); ?>
<?php the_secondary_content( 34 ); ?>
<?php the_secondary_content( 35 ); ?>
<?php the_secondary_content( 36 ); ?>
<?php the_secondary_content( 37 ); ?>
<?php the_secondary_content( 38 ); ?>
<?php the_secondary_content( 39 ); ?>
<?php the_secondary_content( 40 ); ?>
<?php the_secondary_content( 41 ); ?>
<?php the_secondary_content( 42 ); ?>
<?php the_secondary_content( 43 ); ?>
<?php the_secondary_content( 44 ); ?>
Thanks
https://www.ads-software.com/plugins/secondary-html-content/
]]>Is it possible to hide parent div of the secondary html content if there is no content added to the secondary HTML content input box?
https://www.ads-software.com/plugins/secondary-html-content/
]]>I love this plugin. It would be great if there was a way to set up secondary content blocks for only the home page. I currently use widgets for special sections on the home page, but my clients never remember to look in the widget area of the WP dashboard to change the content of these home page sections. It would be great if the content could be accessed on the edit screen of the home page. But I don’t want those secondary content blocks to show up for other pages.
https://www.ads-software.com/plugins/secondary-html-content/
]]>hi your plugin great but i am 1 problem it is not switching to text mode i am also using q-transltor please help me out
sorry for my bad English
Thanks in advance
https://www.ads-software.com/plugins/secondary-html-content/
]]>I need to run a loop to add 35 secondary content boxes for a site that I am coding, and I need to know in which variable or array the label for the secondary content boxes are stored so that I can access them and print them in the code.
Thank you for your help!
https://www.ads-software.com/plugins/secondary-html-content/
]]>Is there a way to assign a css class to a content block so that it’s automatically wrapped in a div with a specific css class? Thanks
https://www.ads-software.com/plugins/secondary-html-content/
]]>Hy!
I’ve a strange problem: the_secondary_content() is not shown after if it’s positioned right after get_sidebar().
If i place it above, the content is visible as it should be.
Any hints?
Kind regards,
Bernhard
https://www.ads-software.com/plugins/secondary-html-content/
]]>Dear Jake,
I love your plugin but I am pulling my hair out if you goto https://www.qatarcardio.org homepage I have the following code in footer.php and header php in header text shows but not in footer and I dont know why please please can you help.
<div class="seo">
<?php the_secondary_content(); ?>
</div>
I have included the code on the site
HEADER.php
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>" />
<title><?php woo_title(); ?></title>
<?php woo_meta(); ?>
<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>" />
<?php wp_head(); ?>
<?php woo_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php woo_top(); ?>
<div id="wrapper">
<div id="inner-wrapper">
<div class="seo">
<?php the_secondary_content(); ?>
</div>
<?php woo_header_before(); ?>
<header id="header" class="col-full">
<?php woo_header_inside(); ?>
</header>
FOOTER.php
<footer id="footer" class="col-full">
<?php woo_footer_inside(); ?>
<div id="copyright" class="col-left">
<?php woo_footer_left(); ?>
</div>
<div id="credit" class="col-right">
<?php woo_footer_right(); ?>
<div class="seo">
<?php the_secondary_content(); ?>
</div>
</div>
[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
https://www.ads-software.com/plugins/secondary-html-content/
]]>Hi there,
When I try and navigate to ~/wp-admin/themes.php?page=theme-settings I get the following error:
PHP Warning: Missing argument 2 for Secondary_HTML_Content_Input::setup_editor() in E:\Home\hkt2\Web\wordpress\wp-content\plugins\secondary-html-content\secondary-html-content.php on line 357
Hoping someone can help.
Thanks
Caroline
https://www.ads-software.com/extend/plugins/secondary-html-content/
]]>So, basically I’m looking for an if statement what will display some <divs> and the content in the secondary html field only if the field has content to output to the page.
Example;
<?php if( ...the_secondary_content() has content to output...) : ?>
<div class="someClass">
<?php the_secondary_content(); ?>
</div>
<?php endif; ?>
I’m rather new to php, maybe I’m just missing something. Any help in creating such an if statement would be appreciated.
https://www.ads-software.com/extend/plugins/secondary-html-content/
]]>This seems to be a general issue, with no real answers. I posted on the plugin home page, but this might be a better place:
I managed to display the secondary content successfully here: https://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: https://www.botriverwines.com/directory/
Any ideas?
https://www.ads-software.com/extend/plugins/secondary-html-content/
]]>Secondary HTML Content dont accept shortcodes?
I need to put shortcodes in content, but not possible.
Someone could help me, please!
https://www.ads-software.com/extend/plugins/secondary-html-content/
]]>Right now I’m using a custom field to simulate a title above a second or third content block, but it would be nice if that were an option right inside this plugin. So this is a feature request ;), to add a title box above additional content boxes.
https://www.ads-software.com/extend/plugins/secondary-html-content/
]]>I can successfully display secondary content for other pages via templates. I have tried to incorporate secondary content in my custom template for my posts main page, but it doesn’t work. In Settings > Reading > Posts Page I’ve selected a page to use as the main posts page. The secondary content I enter in this page doesn’t display as intended. Why is this? I’d rather not hardcode this content. Thoughts? Thanks!
https://www.ads-software.com/extend/plugins/secondary-html-content/
]]>I love this plugin! I am looking to make the Secondary HTML content boxes smaller on the post page. I am using a number of them so that the user can enter specific information in the separate boxes, and I just need it to be about the default size of the excerpt box. How would I make changes to the size (height)?
Thanks!
https://www.ads-software.com/extend/plugins/secondary-html-content/
]]>Hi all! I see an unresolved, year-old post inquiring about search integration with this plugin but nothing else. Has anyone successfully achieved this? I need to be able to enter a search term in the search field, and to have the Secondary HTML Content searched along with the rest of its parent post.
https://www.ads-software.com/extend/plugins/secondary-html-content/
]]>Hello,
I can’t put the code inside a loop.
It works in a single article, it works on a single page but it doesn’t work in the loop.
I’ve tried:
the_secondary_content(1, $post->ID);
and
the_secondary_content(1);
and
the_secondary_content();
Anyone can help me?
Thanks!
https://www.ads-software.com/extend/plugins/secondary-html-content/
]]>Cant insert images via native WP media function (it puts the image into the main content area, not the 2nd HTML area selected), so have to use Tiny MCE insert image tool, which is a pain and driving my client up the wall. Anyone know how to fix this?
using 2nd HTML 3.01 with WP 3.3.2
thanks
Kevin
https://www.ads-software.com/extend/plugins/secondary-html-content/
]]>I’m using plugins like sociable and eshop. They automatically add their content underneath each post. Actually, underneath every post content. That means that with three extra content blocks, I’ll get four instances om my pages with social bookmarks and four times the order form from eshop.
I can hide these extra instances through css, but that’s not the way to do it, and tricky in the case of eshop. Is there a way to disable this automatic adding by plugins for extra content blocks?
https://www.ads-software.com/extend/plugins/secondary-html-content/
]]>my web is a multisite website. I set secondary block show up on sidebar through Appearance > Widgets. One of site works well, but another site does not display the content of secondary block. Do this plugin not support multisite?
https://www.ads-software.com/extend/plugins/secondary-html-content/
]]>I am trying to use the fantastic Get The Image plugin to pull in images from a Secondary HTML Content block called “Teaser”.
I tried 'meta_key' => 'Teaser'
but that didn’t work, although 'meta_key' => 'Teasertest'
(which refers to a standard custom field called “Teasertest” on the same page did.
Not sure if the issue is deeper than just getting the right meta key, but I want to at least make sure I have that right ??
Hope you can help!
Thanks
https://www.ads-software.com/extend/plugins/secondary-html-content/
]]>I use secondary html content to allow for a sidebar area where we can have custom sidebars on each page. I have noticed that if you make changes to the sidebar content and click “preview changes”, not only are the changes shown on a “previewed” page, but the changes are actually published and appear on the live site.
Further, if I restore to an older version of the page, the previous secondary html content is not restored, only the main content from WP’s default content editor… is this a known issue?
thanks for any insight you can provide.
https://www.ads-software.com/extend/plugins/secondary-html-content/
]]>I deleted and reinstalled Secondary HTML Content (trying to get all the TinyMCE buttons to show).
On reinstall I called the content area exactly the same as previous and put it into the same sidebar. All the content that had been there previously was missing. Does anyone know how to restore this content please? My client is not pleased with me!
Thanks
Kevin
https://www.ads-software.com/extend/plugins/secondary-html-content/
]]>Hi, Hardly any tiny MCE buttons are showing. I’m using 3.3.1 WP and 3.0.1 2nd HTML.
I use 3.2.1 WP and 2.0 2ndHTML on other sites and can see all the buttons.
I tried a full delete and reinstall of 2ndHTML, all that did was wipe all the content my client had entered, unhappy client!
Can anyone suggest how to get all the TinyMCE buttons to show?
PS if you suggest php fixes can you say which file to put them in eg functions.php etc
thanks
Kevin
https://www.ads-software.com/extend/plugins/secondary-html-content/
]]>A client alerted me of some issues they were experiencing on their site…
When investigating the issue, it appears whatever content appears in the main editor will appear in the secondary HTML content editor upon saving/updating.
Has anyone experienced this issue? If so, what did you do to resolve this issue?
I’ve updated the plugin (version 3.0.1) and am using the latest version of WordPress (3.3.2).
https://www.ads-software.com/extend/plugins/secondary-html-content/
]]>I create content set it up as a widget- nothing appears. Not sure what I’m doing wrong.
https://www.ads-software.com/extend/plugins/secondary-html-content/
]]>Hi there,
I am successfully using the following in my singular page template to display a post ‘Subtitle’:
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>">
<?php the_title('<h2>', '</h2>'); ?>
<?php echo the_secondary_content( 'Subtitle' ); ?>
<p><?php the_content("Continue reading " . the_title('', '', false)); ?></p> </article>
<?php endwhile; ?>
However, on my archives template the following does not work:
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" class="four columns">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php get_the_image( array( 'link_to_post' => false, 'size' => 'medium', 'image_class' => 'projectthumb', 'image_scan' => 'true' ) ); ?>
<?php the_title('<h3>', '</h3>'); ?>
<?php echo the_secondary_content( 'Subtitle' ); ?></a>
</article>
<?php endwhile; ?>
What am I missing?
Thanks!
https://www.ads-software.com/extend/plugins/secondary-html-content/
]]>I updatet plugin and it doesn’t work any more. The secondary content doesn’t show. I deactivate and activate plugin, nothing happend. I deactivate and activate all other plugins but nothing happend.
https://www.ads-software.com/extend/plugins/secondary-html-content/
]]>