Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #17152

    avalox
    Participant

    Hello. Great plugin for wordpress.

    I use:

    $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : (get_query_var(‘page’) ? get_query_var(‘page’) : 1);

    $default_args = array(
    ‘post_type’ => ‘cp_recipe’,
    ‘posts_per_page’ => 9,
    ‘orderby’ => ‘post_views’,
    ‘order’ => ‘DESC’,
    ‘paged’ => $paged
    );

    Problem: when I put the line ‘orderby’ => ‘post_views’ the posts with 0 views are not displayed. It only displays posts with 1 or more views.

    I want to list the posts by most viewed, but also want to view posts with 0 views.

    Somebody help me. Thank you.

    #17290

    rayb
    Participant

    *PUSH* I have the same question.

    #28382

    md416
    Participant

    Same very huge problem!
    And still no answer??
    Please somebody help

    #30021

    md416
    Participant

    And still no answer… great

    #31967

    md416
    Participant

    almost 2 years left and still no answer for this huge problem((

    #32007

    vicetias
    Participant

    Another big issue is the one with timezone that also doesn’t show up the most visited posts by day when the day ends.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.