urgently need help, guys!
Hey @fedorov!
Please go to Settings > WordPress Popular Posts > Parameters. There you’ll find every parameter you need for this + examples as well.
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!
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.
@hcabrera Big and sincere thanks
I just do not know the syntax of php
All turned out!
I wish you happiness!
