Hi @ventio
Are you trying to use the parameters in URL because you would like to transfer few specific value from the original to the duplicated post?
If yes, there is a setting from WordPress dashboard > Settings > Duplicate post > Duplicate Post Options > What to copy > Post/page elements to copy and there you can select the data that you would like to copy.
Kindly let me know if I am not picking up the question correctly.
Thread Starter
ventio
(@ventio)
I’m sorry but I don’t understand… What exactly should I select in these settings if I want to transfer parameters from the URL to the appropriate fields?
Hi @ventio
Thanks for the response and I am sorry for the confusion.
In my previous answer, I was informing how you can transfer the value from one post to another post from our settings.
May I know a little more on what you are trying to achieve by passing the value through URL parameters?
Thread Starter
ventio
(@ventio)
Let me show you what I mean with an example:
- I open the page that I want to clone, an example url of such a page is: https://your-domain.com/page1/?parameter1=value1¶meter2=value2 (Pay attention to this url. In the url there is parameter1=value1 and parameter2=value2)
- I would like it to be cloned to the draft page along with parameter 1 and parameter 2 after clicking “Duplicate post, new draft”, where the values of these parameters are saved in the appropriate fields
Is there a way to copy parameters from a URL?
Hi @ventio
This will require custom code to copy parameters from URL and pass the value of the parameter. You can check the filters to customize as required.
Thread Starter
ventio
(@ventio)
Ok, which filter should I pay attention to?
This thread was marked resolved due to a lack of recent activity. The original poster can change the status to Not Resolved to re-open the issue or open a new topic.
If you are not the original poster but have a similar issue, please open a new topic.