WordPress.org

Ready to get started?Download WordPress

Forums

WP_Query loop doesn't show posts with pagination (1 post)

  1. lomali
    Member
    Posted 1 year ago #

    I'm trying to implement the pagination in wordpress for a few hours now. The navigation of the pagination is displayed and the post-transfer from the database also works. But from page two on, they aren't visible in the loop.

    Here is the code:

    paged = ($permalink[4]) ? $permalink[4] : 0;
    $query = new WP_Query( 'cat='.$catObj->cat_ID.'&posts_per_page=10&paged='.$paged );
    if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post();

    Where is the mastake?

Topic Closed

This topic has been closed to new replies.

About this Topic