• Resolved jetaisriche

    (@jetaisriche)


    Hey,

    Thanks for this great plugin !

    I wanna display it only on the first page (home page) So i use this :

    <?php
    
    wp_reset_query();
    $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
    if ($page ==1)  {
    echo '
    if(function_exists('tptn_show_pop_posts')) tptn_show_pop_posts();
    ';
    }
    ?>

    But i have a syntax error with the '

    here (tptn_show_pop_posts))

    Do u have a solution ?

    http://wordpress.org/extend/plugins/top-10/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ajay

    (@ajay)

    What is the error that PHP is throwing up?

    Thread Starter jetaisriche

    (@jetaisriche)

    Dont worry i found the solution

    <?php
    
    wp_reset_query();
    $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
    if ($page ==1)  {
    if(function_exists('tptn_show_pop_posts')) tptn_show_pop_posts();
    }
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Probleme with php’ is closed to new replies.