0

I have created a custom page named 'photo' in Wordpress and using a permalink structure like "%category%/%postname%". Now I need to pass some URL variables like the following -

http://wordpress.local/photo/id/200/action/resize/width/300/height/260

The GET variable should look like the following array. How to do this without touching the .htaccess file?

array( 'id' => 200, 'action' => 'resize', 'width' => 300, 'height' => 260 );

1 Answer 1

1

You should have a look at WP_Rewrite, you could add your own rules using add_filter() with the rewrite_rules_array parameter.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.