Tell us what you are trying to do?
I want to be able to use the same search/view layout on different pages without having to recreate the layout each time with the block editor (which is really a pain because the block editor is a terrible interface and extremely time consuming to use). I tried to duplicate the page, but then when I changed the info on one page it changed it on all, and while I could assign the overall view to a different custom post type, the view loop stayed with the original post type. But it was all futile anyway because of the changing the info on the original page anyway. I also tried making a reusable block of the search criteria but everything was showing up as shortcodes on the front end.
Surely there must be a more efficient way to copy a layout across different pages and change which custom post type is assigned to it.
Is there any documentation that you are following?
Searched and followed the instructions on a few other support threads but they didn't really help.
Is there a similar example that we can see?
What is the link to your site?
dressageconnec.wpengine.com
Are you referring to just duplicating the View that is on the page or are your duplicating the entire page itself.
If you're referring to just duplicating the view, all that you need to do is when you create your new page, just add the block view to that new page and set it to "Edit as copy" rather than editing the original. Once you've done this it will automatically create a copy of the original view that you can change an edit without affecting the original view.
Would you mind allowing me to have admin access to the site so that I can see what is happening here?
If your view was originally created with the gutenburg editor, when you add it to a new page it should ask if you want to edit the original or edit it as a copy.
I've enabled the private fields for your next response.
Thanks for doing that, but I'm still having problems connecting it to the new post type. I went to View > Content Selection and click the radio button for "Stallions". But when I try to change some of the information in the View loop I am not getting "Stallions" as an option to choose from - for instance, when I want to change the featured image and try to use "Dynamic Source". I am only getting "Current Post" or "Other Post".
I suspect the issue is with the distance filter prefiltering the list on the backend.
The issue should now be resolved as i've removed the distance query filter from the view so Zhivago should now be showing up for you to customize the output of the view data.
Thanks Shane. Can I ask what steps you took to get the view to copy correctly without affecting the original trainers page? Because I am going to need to go through this process again with another page.
All I did in your case to copy the view is to just open the new page and use the view block to insert the existing view.
When you're inserting the view it will ask if you want to edit the original or edit as a copy. Clicking on edit as copy and this should copy the view onto the page for you.