WordPress: Creating Custom Permalinks for Plug-Ins

Over the last week or so, I’ve been working to develop a new WordPress plug-in that sets up bi-monthly archives (to be generated for the first and fifteenth of the month by default). As part of that process, I needed to create custom permalinks to display these new archives. Unfortunately, the amount of information available on this matter is fairly limited. I had to gather information from a few different places and then use some of my own experience to finalize the process.

It’s entirely possible that there’s a better way to handle this situation, but this is what I was able to do.

Create Custom WordPress Category/Archive Pages

When using WordPress as a content management system, you may find yourself in a situation where you want a parent page to show snippets from each of its child pages. There are a few ways you can go about this.

To begin with, obviously, you need to create the page that will show the list. This should be a standard WordPress page. For purposes of this article, let’s say this page has a title of “Parent.” Once you’ve created the “Parent” page, you can create each of the child pages. Make sure that you indicate each of those pages has “Parent” set as its parent.