Поддержка Плагины WP-PostViews в WordPress 3.01

  • Помогите разобраться, я имею Основной шаблон (index.php) и плагин WP-PostViews 1.5 считает количество просмотров страницы
    куда установить php-код
    <div class=»view»><?php if(function_exists(‘the_views’)) { the_views(); } ?></div>
    в index.php, чтобы стояло рядом Опубликовано 17.01.2011 автором admin

    index.php:
    <?php
    /**
    * The main template file.
    *
    * This is the most generic template file in a WordPress theme
    * and one of the two required files for a theme (the other being style.css).
    * It is used to display a page when nothing more specific matches a query.
    * E.g., it puts together the home page when no home.php file exists.
    * Learn more: http://codex.wordpress.org/Template_Hierarchy
    *
    * @package WordPress
    * @subpackage Twenty_Ten
    * @since Twenty Ten 1.0
    */

    get_header(); ?>

    <div id=»container»>
    <div id=»content» role=»main»>

    <?php
    /* Run the loop to output the posts.
    * If you want to overload this in a child theme then include a file
    * called loop-index.php and that will be used instead.
    */
    get_template_part( ‘loop’, ‘index’ );
    ?>
    <div class=»navigation»>
    <?php wp_pagenavi(); ?>
    </div>
    </div><!— #content —>
    </div><!— #container —>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

Просмотр 2 ответов — с 1 по 2 (всего 2)
  • я имею

    Аккуратнее с выражениями 😉
    Вам следует ознакомится с правилами…

    Atrax

    (@atrax)

    Ethical engineer

    Если бы это было первое сообщение, я бы просто предупредил.
    Но за три недели правила можно было прочитать.
    Тема закрыта.

Просмотр 2 ответов — с 1 по 2 (всего 2)
  • Тема «WP-PostViews в WordPress 3.01» закрыта для новых ответов.