Note that there are some explanatory texts on larger screens.

plurals
  1. PO"Page not found" HTML title when I click the next link of wordpredd blog pagination
    primarykey
    data
    text
    <p>I have implemented a pagination links at the end of my wordpress blog page. In a one page I have 3 posts and when I click the next link of my pagination links it take me to the next page which contains the next 3 posts. I retrieve posts from only one category. But when I go to the next page the html title of that page is "Page not found" My code is like below:</p> <pre><code> $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array('cat'=&gt; 4, 'posts_per_page' =&gt; 3, 'paged' =&gt; $paged ); query_posts($args); if(have_posts()) : print ('&lt;div class="row"&gt;'); while (have_posts()) : the_post(); $excerpt = get_the_excerpt(); //My post contents endwhile; if (function_exists("pagination")) { pagination(); } print ('&lt;!-- end main row --&gt;&lt;/div&gt;'); endif; } </code></pre> <p>My pagination function is:</p> <pre><code> function pagination() { /* post: retun the pagination post cout and next previous buttons */ global $paged; if(empty($paged)) $paged = 1; if($pages == '') { global $wp_query; $pages = $wp_query-&gt;max_num_pages; if(!$pages) { $pages = 1; } } if(1 != $pages) { print('&lt;section &gt;'); if ($paged &lt; $pages) echo "&lt;a href=\"".get_pagenum_link($paged + 1)."\"&gt;NEXT&lt;/a&gt;"; if($paged &lt;= $pages &amp;&amp; $paged &gt; 1) echo "&lt;a href='".get_pagenum_link($paged - 1)."'&gt;BACK&lt;/a&gt;"; echo "&lt;p &gt;Page ".$paged." of ".$pages."&lt;/p&gt;"; echo "&lt;/section&gt;"; } } </code></pre> <p>Please help me for this</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload