I am wanting to make a plugin that will allow a user to go to a URL like this...
http://www.domain.com/post-title-here/stats
On this stats page is where I will have my plugin output stats data related to the post/page that it is associated with.
I need help with setting up the URL and the page to be shown at that URL. Any ideas?
One thing I saw that is close to what I want is Custom Endpoints
however they seem to add
permalink/my-endpoint/endpoint-value/
where I would really need it to instead be like permalink/my-endpoint/
more specificially /page-name-slug/stats/
Aucun commentaire:
Enregistrer un commentaire