Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
588 views
in Technique[技术] by (71.8m points)

url - Wordpress pagination behaviour

Recently I added pagination to my site. Using paged param to WP_Query and get_query_var('paged'). For paginate links I'm using paginate_links() with format ?paged=1. Why Wordpress rewrites this format to /page/1? How to avoid that and leave pagination slug with query param and not like separate pages?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Fixed problem. Just changed query variable since page and paged variables are listed in query vars.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...