• Resolved ul71m0

    (@ul71m0)


    Hi guys,

    i have custom design with 3 tabs ( Now, Week, All ) so i used 3 times wpp_get_mostpopular but with different parameters. The problem i have is that it only shows “daily” even if i have placed weekly and all in other two tabs.

    So when day past and i get in my website i get “Sorry no data” in all 3 tabs. Here is my code.

    <div role="tabpanel" class="tab-pane fade in active" id="now">
                        <h4>Most Read</h4>
                        <?php wpp_get_mostpopular('range="daily&limit="5"&stats_views=0&wpp_start="<ol>"&wpp_end="</ol>"'); ?>
                    </div>
                    <div role="tabpanel" class="tab-pane fade" id="this-week">
                        <h4>Most Read</h4>
                        <?php wpp_get_mostpopular('range="weekly&limit="5"&stats_views=0&wpp_start="<ol>"&wpp_end="</ol>"'); ?>
                    </div>
                    <div role="tabpanel" class="tab-pane fade" id="all-time">
                        <h4>Most Read</h4>
                        <?php wpp_get_mostpopular('range="all&limit="5"&stats_views=0&wpp_start="<ol>"&wpp_end="</ol>"'); ?>
                    </div>

    Im using latest version of plugin. And just for a test i have placed widget in sidebar to show me all the time posts and i have 10 of them listed, so the data in database exist…

    https://wordpress.org/plugins/wordpress-popular-posts/

Viewing 1 replies (of 1 total)
  • Thread Starter ul71m0

    (@ul71m0)

    Ok i found the problem, i did elimination of parameter by parameter and i found that i didnt had closing “. For example i have range=”daily so i was missing one ” in every line.

Viewing 1 replies (of 1 total)
  • The topic ‘Multiple calls, shows only firlst’ is closed to new replies.