• Resolved fedorov

    (@fedorov)


    Hello @hcabrera

    Help make the code that displays
    1. name of the plugin
    2. sort by view count
    3. display the number of comments

    I get only this code,

    <?php
        if (function_exists('wpp_get_mostpopular'))
            wpp_get_mostpopular("range=all&order_by=views");
    ?> 

    but it does not show the plugin name and comments.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter fedorov

    (@fedorov)

    urgently need help, guys!

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hey @fedorov!

    Please go to Settings > WordPress Popular Posts > Parameters. There you’ll find every parameter you need for this + examples as well.

    Thread Starter fedorov

    (@fedorov)

    Thanks for the answer. @hcabrera

    I know this list with parameters. I do not know how to register them in code

    what I need to add to this code

    <?php
        if (function_exists('wpp_get_mostpopular'))
            wpp_get_mostpopular("range=all&order_by=views");
    ?> 

    I want to have an additional
    1. There was a name Plugin (name, for example, “Pupolar posts for all time”).
    2. Number of comments.

    Thank you!

    Plugin Author Hector Cabrera

    (@hcabrera)

    As simple as this:

    <?php
        if (function_exists('wpp_get_mostpopular'))
            wpp_get_mostpopular("header='Popular Posts of All Times'&range=all&order_by=views&stats_comments=1");
    ?>

    … or this, if you prefer using arrays:

    <?php
        if ( function_exists('wpp_get_mostpopular') ) {
    
            $args = array(
                'header' => 'Popular Posts of All Time',
                'range' => 'all',
                'order_by' => 'views',
                'stats_comments' => 1
            );
            wpp_get_mostpopular( $args );
    
        }
    ?>

    Please make sure to read the documentation before asking questions. It’ll save you time.

    Thread Starter fedorov

    (@fedorov)

    @hcabrera Big and sincere thanks
    I just do not know the syntax of php
    All turned out!
    I wish you happiness!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Need help with plugin configuration’ is closed to new replies.