• Resolved webgiorgio

    (@webgiorgio)


    Hi,
    I have set the widget of tabbed content to show the most popular articles. However what is shown is a bunch of article that are (according to google analytics) not popular at all.
    What algorithm is Poseidon using to rank the most popular articles? the visits? the comments? (comments are disabled in my website).
    Poseidon Version: 1.4.2 (I’ve a child theme, that’s why I haven’t updated. I wonder if new versions changed the way the “popular posts” are ranked).

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter webgiorgio

    (@webgiorgio)

    It is comment count.
    Line 238 in the file widget-tabbed-content.php

    // Popular Posts.
    			case 4:
    
    				// Get latest popular posts from database.
    				$query_arguments = array(
    					'posts_per_page' => (int) $settings['number'],
    					'ignore_sticky_posts' => true,
    					'orderby' => 'comment_count',
    				);
    				$posts_query = new WP_Query( $query_arguments );

    How can I change it to use last 30 days visit count?

    Theme Author ThemeZee

    (@themezee)

    Hi there,

    Thanks so much for using Poseidon.

    The Widget Bundle uses the most commented posts for the popular ranking. So if all your posts have zero comments it will not really work.

    Comments are the only metric which is available. Otherwise the plugin would have to save page visits or some other values to rank posts, which is a bit overkill for that simple widget.

    Cheers,
    Thomas

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘popular tab widget is wrong’ is closed to new replies.