Permalink with post_Id but would like Optional post_title
-
I currently have my permalink setup using /%category%/%year%/%post_id% which I like because it guarantees every link will be unique with the post_id
But I was wondering if it’s possible to have it optionally accept addresses in the form of /%category%/%year%/%post_id%/%post_title%/
So if I am linking someone to a post I could give them either url:
examplelink.com/politics/2013/15
examplelink.com/politics/2013/15/first-presidentWhen you click the link the url in the address bar would preferably include the post title for quick identification of the post title. So users wouldn’t have to scroll to the top for the title or have to try and read a potentially squished and small tab.
The reason I want the availability of just a post_id with no post_title is in the case of a long post title.
I don’t want to make this the mandatory link to the page:
examplelink.com/politics/2013/17/rough-draft-article-for-newspaper-of-george-washingtons-boyhood-home-mount-vernon-virginiaThat would be really cumbersome when examplelink.com/politics/2013/17/ would also work.
Any idea how to do this. Or if it is possible. If not it isn’t the end of the world.
Thanks
- The topic ‘Permalink with post_Id but would like Optional post_title’ is closed to new replies.