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


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: