Join Stack Overflow to learn, share knowledge, and build your career. Connect and share knowledge within a single location that is structured and easy to search. I simply want a link to my blog archives. They are just normal posts, but I cannot seem to find the right url for them to add to my menu. Actually the file to list all posts of any category and date is the index. You just write 'the loop' as told on codex.
Why It’s Useful to Know How to Identify WordPress Post and Page IDs
Page, Category, Tag, Comment, and User IDs
Recently one of our readers asked if it was possible to create their own custom permalinks aka page URL structure in WordPress. In this article, we will show you how to create custom permalinks in WordPress without affecting your SEO. Since this is a comprehensive tutorial on creating custom permalinks in WordPress, we have created an easy to navigate table of content:. Permalinks are the permanent URLs of your individual blog posts, pages, and other archive pages on your WordPress site. WordPress provides website owners with multiple options to choose from. You can view them by visiting Settings » Permalinks page. Aside from changing the main permalink structure, WordPress also offers ways to customize the individual URLs of posts, pages, categories, tags, and other areas of your website. You can also use WordPress plugins to create completely custom permalinks for specific sections of your website that overrides the default WordPress settings.
A plugin might need it to exclude that page from a feature, for example. Page and post ID numbers are how WordPress identifies each piece of content on your website. In fact, there are a lot of ways that you can get post IDs in WordPress. Internally, WordPress recognizes specific pages and posts by their ID numbers. WordPress post IDs are also necessary in some cases for building custom shortcodes. In that scenario, you can tell WordPress that if a post or page matches the ID s you set, it should run the code that you want:. Finding post IDs in WordPress is remarkably simple if you know where to look. The easiest way to find a post ID in WordPress is to go to your dashboard and click on the Posts menu option. You should see a list of all the posts on your website, and finding their IDs is as easy as mousing over each title:.
A simple WordPress slug example would be if you visited a blog post at www. By default, the slug of any post you publish will be the same as the title, only lowercase and with dashes instead of spaces. You can easily change the slug before you publish, or even to customize the default slug after you publish a page. Why would you want to customize your post slug? Well, slugs help to identify a page on a website in a user-friendly way. The purpose of a WordPress slug is to create user-friendly URLs that help readers and search engines know what your content is all about. Think of it like naming a file on your own computer.