I have a piece of theme code and a short code that will display an optin box on any page or post on my site.
The work on all apart from the Portfolio page and the blog page I’ve set up.
This is the theme code
<?php hybrid_connect_insert_connector(22);?>
I want the box to appear above the content so I’ve tried placing it at various point in this section of the page_portfolio.php code
//Adds Page Content
add_action( ‘genesis_before_loop’, ‘epik_do_portfolio_content’ );
function epik_do_portfolio_content() {
echo ‘<div class=”entry-content entry-portfolio” itemprop=”text”>’ . get_post()->post_content . ‘</div>’;
}
This just causes an error referring to an unexpected ‘<‘ on line XX
Any idea how I can add the code? to the portfolio page?