Add custom code to wordpress loop?
-
Hi there. I’m wanting to use this theme with MyArcadePlugin. But I need to enter some code into single.php within the WordPress loop.
Usually this might be quite simple but your themes single.php uses a lot of custom codexes or something?
Anyway I need to enter this code into single.php
<?php
if (function_exists(‘get_game’)) {
/* mypostid global is needed for MyScoresPresenter */
global $mypostid; $mypostid = $post->ID;
echo myarcade_get_leaderboard_code();
echo get_game($post->ID);
}
?>As explained here http://myarcadeplugin.com/documentation/developer-guide/#get_game
But having some issue locating the right bit to edit/change.
Could you kindly assist me in this matter?
I hope.
Regards.
Mike.
The topic ‘Add custom code to wordpress loop?’ is closed to new replies.
