30 reputation
10
bio website samminds.com
location Duisburg, Germany
age 29
visits member for 3 years, 2 months
seen May 13 at 14:21

I develop web-applications using Zend Framework and Zend Framework 2. Occasionally i blog about Zend Framework 2 stuff once i've learned something interesting. You can find my blog over at samminds.com. To keep updated as fast as possible you can also follow me on twitter @manuakasam


Apr
15
accepted Custom Rewriting to Plugin with Parameters
Apr
15
awarded  Benefactor
Apr
15
awarded  Commentator
Apr
15
comment Custom Rewriting to Plugin with Parameters
Got it working. ?p= vs. ?page_id=. I got really confused why it kept redirecting to the page without any parameters. I noticed that internally page_id is used. So my assumption is: ?p= does an redirect to ?page_id= and strips all other stuff. I have no proof for this code-based, but ultimately with using page_id it works. Thanks for your patience!
Apr
15
comment Custom Rewriting to Plugin with Parameters
Sad news... here's what I did: Download WP (4.1.1), extract, copy myplugin.php // cd wp-dir // php -S localhost:9090 Create new Page with the given shortcode as body content. Synchronize page id within myplugin.php Enable Plugin on backend // go to Settings > Permalinks and save them a few times ("Post Name" setting) foo.dom/myplugin/123 redirects to foo.dom/myplugin with no filter being displayed.
Apr
15
comment Custom Rewriting to Plugin with Parameters
@TheDeadMedic thought this would be enough ;) However check current answer by websupporter This one doesn't work on my installation either and this is with all other plugins deactivated aside from the one-file-plugin he wrote and appears to be working on his end.
Apr
15
comment Custom Rewriting to Plugin with Parameters
Hey gyo, please see what I wrote under websupporters answer. I begin to think that the problem may be completely elsewhere as his solution doesn't work in my place with all other plugins deactivated aside from his. Added my .htaccess into the question as well, I'm really getting more n more clueless about this.
Apr
15
revised Custom Rewriting to Plugin with Parameters
updated solution report by @websupporter
Apr
15
comment Custom Rewriting to Plugin with Parameters
OK, so I was able to test this now and sadly I get literally the same result as on my tries. Here's what I did: I copied your content to myplugin.php inside /plugins and activated the plugin on the backend. After activation i went to Setting > Permalinks and pressed Save Changes to flush the rewrite rules. I then created a new page using the shortcode [myplugin]. I went to my installation foo.dom/myplugin/123 => it redirected me to foo.dom/myplugin/ and the output was filter: - no more. :'( There's no other rewrite stuff ongoing, I disabled my plugin. My htaccess is default,too
Apr
9
awarded  Student
Apr
9
awarded  Promoter
Apr
7
revised Custom Rewriting to Plugin with Parameters
updated with a 50% solution using a param/value url syntax
Apr
7
asked Custom Rewriting to Plugin with Parameters
Mar
2
accepted Unable to access custom plugin backend
Mar
2
comment Unable to access custom plugin backend
Too simple Xx Thank you a lot. Could you elaborate as to why the menu is still displayed using admin_init but then being inaccessible?
Mar
2
revised Unable to access custom plugin backend
added gist to the question
Mar
2
comment Unable to access custom plugin backend
@TheDeadMedic sure thing > gist.github.com/anonymous/b4f69e203630f447677b
Mar
2
asked Unable to access custom plugin backend
Sep
24
awarded  Autobiographer
Oct
7
awarded  Popular Question