I'd like to change the URL of the <?php previous_posts_link ?>
and <?php next_posts_link ?>
that are being outputted by Wordpress .
Problem:
When I am on my single page, I am getting this kind of an url:
What I like to achieve:
When I am on my single page, I would like to get:
So, the URL without the post title!
I don't know if this is even possible, but I'd like to understand if this is doable or not.
Could someone help me out here, please?
使用get_previous_post()
和get_next_post()
获取下一个/上一个发布对象,并构建您的自定义网址。
You can create custom URLs for your pages within the .htaccess file. I found a useful link that might be able to help you out from another thread. php custom link and custom pages
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.