Adding custom PHP to existing loop in Genesis

I am using the theme Magazine Pro for the Genesis Framework. I have a plugin that in order for it to be displayed I must add the following in the loop.

<?php wptopc($format="select", $prepend="<div class='toc'>", $append=""); ?>
<?php wptopc_pagination_links($prepend="", $append="</div>"); ?>

There is no single.php file or anything like that. I also don’t want to change the loop entirely, just add the above code to it. How can I do this for only single_posts?

Read more here: Adding custom PHP to existing loop in Genesis

Leave a Reply

Your email address will not be published. Required fields are marked *