post per page – wrong number in title
-
Hello,
In wordpress I set globaly post per page = 4. Then I defined my new custom archive page, where I set post per page = 12:
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $inner_args = array( 'post_type' => 'mediaonas', 'posts_per_page' => 12, 'nopaging' => false, 'meta_value' => true, 'paged'=>$paged, );
Everything works fine. I have listed 24 items on 2 pages… but in tag <title></title> WordPress still gives wrong number (24:4 = 6):
<title>Title Page - Page 1 of 6 - Title Site</title>
I need change this to:
<title>Title Page - Page 1 of 2 - Title Site</title>
- The topic ‘post per page – wrong number in title’ is closed to new replies.