Plugin Using Rewrite for Detail Pages?
-
I’m writing a plugin that takes custom data tables from outside WordPress and puts the data in them on pages. I’m thinking either a page template or a [shortcode] would be the way to add this to a page, and open to suggestions there.
Also, the data has about 1,000 different IDs, so I’d like to have a page or pages as site.com/page-title/100 should data for ID #100 and site.com/page-title/200 should show ID #200 and so on. Just site.com/page-title/ can show a list or search function.
I’m a little unclear from the Rewrite API how to read the URL to get the ID, and also how not get a 404 on those subpages.
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Plugin Using Rewrite for Detail Pages?’ is closed to new replies.