[Plugin: WordPress Popular Posts] If mostpopular is empty, show yesterday's posts
-
Hi,
Currently in the plugin, when there are no posts to show for the daily range.
The following code is activated.
if ( !is_array($mostpopular) || empty($mostpopular) ) { $content .= "<p><a href=\"/videos\">".__('Looking for videos? Click here', 'wordpress-popular-posts')."</a></p>"."\n"; }
I noticed it looked strange on my site, so I want to make if there is no content in a range, it will display the most popular posts from yesterday. How do I do that?
https://www.ads-software.com/extend/plugins/wordpress-popular-posts/
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘[Plugin: WordPress Popular Posts] If mostpopular is empty, show yesterday's posts’ is closed to new replies.