0

I want to separate a page page from the sql query. for example current page and last page with option selected.

my listing page code

    <ul class="list-group">
        <h2 class="h3">gündem <div class="btn pull-right" id="reloadson"><i class="fa fa-refresh" aria-hidden="true"></i></div></h2>

        <?php
  if (function_exists('get_last_commented_articles')) {
    echo get_last_commented_articles(50);
  }
 ?>
        </ul>

my function code (get_last_commented_articles)

function get_last_commented_articles($limit = 10, $ul_classes = '', $post_type = 'post') {
$results = query_posts_with_recent_comments($limit, $post_type);
$html = format_last_commented_list($results, $ul_classes);

return $html;
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.