• Can you confirm the plugin is compatible with Posts within the Loop? The reason I ask is that the plugin works perfectly with Pages on my site, but not within Posts.

    I’ve enabled the Secondary HTML Content areas for posts (just added 1 additional) and within the PHP for my Loop content I’m using <?php the_secondary_content(1,235); ?> where 235 is the post ID.

Viewing 1 replies (of 1 total)
  • Thread Starter joffff

    (@joffff)

    Update

    I’ve tracked down the problem, line 161 of the plugin secondary_html_content.php file:
    if (!is_singular()) return false; //only intended for single posts and pages

    What are the implications of removing this line of code as my initial tests seem to show it working fine. Of course I’m sure it was put in there for a good reason!

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Secondary HTML Content] Content doesn't display within the Loop’ is closed to new replies.