Hi there,
I would like some instruction on how to insert the right data in a toolset view I'm creating. What it comes down to is this: I created a copy of a view that's completely customized, which is displaying a search bar and results. I want to use it's format to display other search forms with different information. But for some reason, it seems like the output of the view stays the same as the original view. I'll explain it in more detail down below:
I created a view called "new-search" (with the help of your colleague) that displays the posts from a custom post type (name of custom post type:"Evenementen"). It also enables the viewer to filter through the results. Here's a link to the page where it's properly working: hidden link. The results of the view display the events that I want to organize. They can filter based on location, category(for example; Mindfulness and Yoga) and a specific trainer.
But, I also want to create a page that displays a similar view, enabling visitors to search through the trainers that will guide the events. For this, I created a custom post type called Trainers, that has a couple of the same taxonomies as the custom post type "Evenementen". The mutual taxonomies between the custom post type "evenementen" and "trainer" are: location, category.
So I created a clone of the view that's working properly called "trainer-zoeken". It's a clone of the view "new-search". As you can see in the screenshot "toolset1", I chose the option to only display content from the custom post type "trainers". But if I look at the end result, which you can see at the page: hidden link, it's still displaying the results from the other view ("new-search"). What information do I need to change in the settings of the view to properly change the results that are being displayed? I'll post the code that's currently in use down here:
(search and pagination)
[wpv-filter-start hide="false"]
[wpv-filter-controls]
<div class="row">
<div class="col-sm-4">
<div class="form-group">
<label>[wpml-string context="wpv-views"]Locaties[/wpml-string]</label>
[wpv-control-post-taxonomy taxonomy="locatie" type="select" default_label="Alle Locaties" format="%%NAME%%" url_param="wpv-locatie"]
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<label for="wpv-categorieen-inspiratie">[wpml-string context="wpv-views"]Categorieën[/wpml-string]</label>
[wpv-control-post-taxonomy taxonomy="categorie-trainer-evenement" type="select" url_param="wpv-categorie-trainer-evenement"]
</div>
</div>
</div>
<div class="row my-center-div">
[wpv-filter-submit output="bootstrap"] [wpv-filter-reset output="bootstrap"]
</div>
[/wpv-filter-controls]
[wpv-filter-end]
(loop editor)
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop wrap="3" pad="true">
[wpv-item index=1]
<div class="row ">
<div class="col-sm-4">[wpv-post-body view_template="loop-item-in-trainer-zoeken"]</div>
[wpv-item index=other]
<div class="col-sm-4">[wpv-post-body view_template="loop-item-in-trainer-zoeken"]</div>
[wpv-item index=3]
<div class="col-sm-4">[wpv-post-body view_template="loop-item-in-trainer-zoeken"]</div>
</div>
[wpv-item index=pad]
<div class="col-sm-4"></div>
[wpv-item index=pad-last]
<div class="col-sm-4"></div>
</div>
</wpv-loop>
<!-- wpv-loop-end -->
<div class="row my-center-div">
[wpv-pager-nav-links output="bootstrap" previous_next_links="true" ul_class="my-center-ul"]
</div>
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"]No items found[/wpml-string]
[/wpv-no-items-found]
[wpv-layout-end]
(Template for this view)
<div class="postborder" data-url="[wpv-post-title item="$parent"]">
<div class="postborder-full">
[types field='hoofdfoto' title='%%TITLE%%' alt='%%ALT%%' size='custom' width='500px' height='100' resize='crop' class='image-post-view'][/types]
</div>
<div class="postborder-padded">
<h4 class="link-event">[wpv-post-taxonomy type="trainer-testimonials"]</h4>
<h5> trainer: [types field="naam-trainer"][/types]</h5>
</div>
</div>
[wpv-post-taxonomy type="trainer-testimonials"]
So if you can tell me what I need to change, that would be awesome!