Skip Navigation

[Resolved] Converting a copy of my current view/search into something else

This thread is resolved. Here is a description of the problem and solution.

Problem:

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.

Solution:

It might be a compatibility issue, you can display the view's shortcode directly, for example:

[wpv-view name="your-view-slug"]

Relevant Documentation:

This support ticket is created 5 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 5 replies, has 2 voices.

Last updated by kerimF 5 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#1310657

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!

#1310659
toolset1.PNG

I forgot to upload the screenshot. Here it is!

#1310819

Hello,

I can get your website credentials from previous thread:
https://toolset.com/forums/topic/editing-search-view/

I assume we are talking about the post view "trainer-zoeken":
hidden link

I have tried to put above view's shortcode into a new page directly:
hidden link

[wpv-view name="trainer-zoeken"]

It works just fine, you can see it in front-end:
hidden link
There is only one item in view's results, just same as your website settings:
hidden link

And I have checked the URL you mentioned above:
hidden link

It is created with "elementor" plugin, so the problem should be in elementor side, you can check it with elementor support for it:
hidden link

Currently, as I mentioned above, you can display view's shortcode directly with WordPress built-in editor as I mentioned above.

#1310835
toolset1.PNG

Aah that explains it! Thank you :). So I've been searching in inspect element to find the css that's responsible for the blue colors in the filter bar. But searching everywhere, I couldn't find it. Can you tell me where to find it?

I'll upload a screenshot so you can see what I mean.

#1310857

I assume the original question of this thread has been resolved, for the new question, please check the new thread here:
https://toolset.com/forums/topic/ive-been-searching-in-inspect-element-to-find-the-css-thats-responsible-for-the-blue-colors-in-the-filter-bar/

#1311123

My issue is resolved now. Thank you!