Na předchozím blogu jsem plugin bezproblému používal. Nyní mám web založen na šabloně Icy a nevím kam vložit kód. V popisu instalace pluginu je uvedeno:
1. Open wp-content/themes/<YOUR THEME NAME>/index.php
2. You may place it in archive.php, single.php, post.php or page.php also.
3. Find: <?php while (have_posts()) : the_post(); ?>
4. Add Anywhere Below It (The Place You Want The Views To Show): <?php if(function_exists('the_views')) { the_views(); } ?>
když ale otevřu některou z uvedených stránek tak tam je:
<?php
/**
* The template for displaying all single posts.
*
* @author WildWebLab
* @link http://wildweblab.com/theme/icy
*/
get_header();
do_action( 'wwl_before_loop' ); // Hook
if ( have_posts() ) {
while ( have_posts() ) { the_post();
do_action( 'wwl_before_post' ); // Hook
get_template_part( 'content', get_post_format() );
do_action( 'wwl_after_post' ); // Hook
if ( comments_open() || '0' != get_comments_number() )
comments_template( '', true );
}
} else {
get_template_part( 'content', 'noresults' );
}
do_action( 'wwl_after_loop' ); // Hook
get_sidebar();
get_footer();
Kam mám tedy uvedený kód vložit. Zkoušel jsem varianty, které mě napadly, ale neúspěšně.