Wordpress pagination URL -
I'm trying to score points in my custom query in Wordpress It looks fine and "almost" works - my problem is with the path that arises.
For some reason it gives a path:
... when I really want to:
Does anyone know that How do I delete / modify the refund to exclude the unwanted "page" folder in the URL?
Thank you! Graham
The code for the page is as follows:
& lt ;! - Middle - & gt; & Lt; Div class = "colonel-xs-12 col-sm-6 col-md-6 col-lg-6 medium" & gt; & Lt; H1 & gt; & Lt ;? Php the_title () ;? & Gt; & Lt; / H1> & Lt ;? Php $ paged = (get_query_var ('page'))? Get_query_var ('Page'): 1; $ Query_args = array ('category_name' = & gt; 'news',' orderby '= & gt;' date ',' command '= & gt;' ASC ',' paged '=> $ paged,' posts_per_page '= & Gt; 1); $ The_query = New WP_Query ($ query_args); If ($ the_query-> is_pause ()): while ($ the_query-> is_pause ()): $ the_query-> The_post (); ? & Gt; & Lt; Div class = "news-story-snippet" & gt; And <5 & lt; P class = "small" & gt; & Lt ;? Php the_date () ;? & Gt; & Lt; / P & gt; & Lt; P & gt; & Lt ;? Php the_excerpt () ;? & Gt; & Lt; / P & gt; & Lt; P & gt; & Lt; A class = "button-small green" href = "& lt; php the_ermelink () ;? & gt;" & Gt; Read the article; & Lt; I class = "glyphine glyphine-arrow-right" & gt; ; / I & gt; & Lt; / A & gt; & Lt; / P & gt; & Lt; / Div & gt; & Lt ;? Php timeline; ? & Gt; & Lt ;? Php endif; ? & Gt; & Lt; Nav class = "prev-next-posts" & gt; & Lt; Div class = "prev-posts-link" & gt; & Lt ;? Php next_posts_link ('old entries', 2); // Display the old post link? & Gt; & Lt; / Div & gt; & Lt; Div class = "next-posts-link" & gt; & Lt ;? Php previous_posts_link ('new entries', 2); // Display new post link? & Gt; & Lt; / Div & gt; & Lt; / Neo & gt; & Lt ;? Php wp_reset_query (); ? & Gt; & Lt; / Div & gt; & Lt ;! - Central Middle - & gt;
Comments
Post a Comment