Static Text in Permalink

This is not a problem. Every / is already a static string. Avoid non-ASCII characters, dots (.) and %, restrict the string to lowercase letters a—z and maybe numbers – but make sure the pagination rules do not conflict with it. A static string /2/ might be read as page 2 by WordPress. Besides that, … Read more

How to get list of posts from permalinks?

There are several ways to achieve this, depending on the permalink structure of your posts. Assuming the post slug is part of the permalink structure, you can get the post slug from the post URL and fetch the corresponding post by using WP_Query with the name-parameter. Let’s assume the structure of the URLs is http://example.com/{post_slug}/. … Read more