How to replicate a listing
I wanted to have a feature that allows people to "replicate a listing", i.e. use a current listing to populate fields of and create a new listing.
I want it to show up as a button/link, just as the "Edit Listing" button/link shows up on the single listing page. (The motivation to do so, is that for my application people have to create multiple listings with a lot of common fields. So I want to cut down on the duplication of effort.)
I am drawing up a blank on how to get this done. I can't figure out how the "Edit Listing" link actually results in the edit-listing.php to get loaded. I was thing of having a similar replicate-listing.php, and use it to load the form with pre-populated fields.
Any suggestions will be welcome.