How to make a rest style plugin?
I created a plugin that is basically a crud to write to the mysql database. I want to know how to display the data on a wordpress page. I'm reading about url rewrites but it seems rewrites are for regular post and just changing the url. I can't seem to find any tutorials on this.
so when I go example.com/gallery/1/5
it will take me to the gallery with id: 1
and show me the 5th image
.
Topic plugins-url ajax plugins Wordpress javascript
Category Web