Hi
I'm writing a simple gallery plugin.But am unable to get anywhere with the rewrite rules, I was hoping that somebody could help or point me in the right direction.
The premise behind my plugin works like this: When a user writes a post they can include a string in the page (e.g. my_gallery_goes_here) that is filtered using add_filter('the_content'... and replaced with the front of the gallery. This works fine.
What the viewer sees then is a set of images that represent the albums within the gallery. When the viewer clicks on the image I want them to go to a page called /gallery/some_album which shows the a set of images and from there to /gallery/some_album/some_picture
The page 'gallery' will have the string my_gallery_goes_here in it which will then be replaced with the gallery using the_content. I want to a pass the values some_album and some_picture to the gallery function.
I've searched the docs etc. - but just can't figure out how to create the rewrite rule in wordpress - any help or advice would be greatly appreciated.
Cheers
p.s. I'm using 2.1