No, you can’t use a shortcode in a redirect. You may be able to use a regular expression:
https://redirection.me/support/redirect-regular-expressions/
Ok thanks John, Well, Regular Expressions are over my head. I have no idea how to make what I outlined happen. Any ideas? Maybe using redirection plugin is not the answer. Perhaps it’s best done through Javascript? I don’t know. I’m not an expert programmer.
Thanks,
Kenny
I don’t fully understand what you are trying to do and can only help with Redirection itself. You mentioned a dropdown box and that doesn’t really have anything to do with redirecting things.
If you only have 13 URLs then I would just just create one for each – it’s considerably less work than the other options.
Gotcha, I’m trying to automatically add query parameters dynamically to the URL. The parameters are specific to a select field in my form I plan to add on the same page. So I was trying to setup the query parameter to automatically update based on the post url that is tied to a custom post type in WordPress..
For example:
Regular URL:
https://jamyershomes.com/new/communities/cherry-tree/
URL with Query Parameter:
https://jamyershomes.com/new/communities/cherry-tree/?community=Cherry-Tree-Community
If you scroll all the way to the bottom of the page when you click the URL with the Query parameter added, I have a form that is revealed when you click on the Send Me a Message button under the sales manager section. The drop down select box for “Select a Community of Interest” is then automatically selected.
This functionality is perfect, except that if I used REDIRECTION plugin then I’d have to create and manage all the URL redirects to the query parameter version manually when new communities are created or if something changes. This is not ideal, so I was trying to create a dynamic redirect that would pull in the community posts SLUG because that matches the name of the select field ID of the form.
commnunity is the name of the Custom post type so that will not change it’s the ending part that will based on the community page that is being visited.
Hope this makes sense.