Skip Navigation

[Resolved] views filters

This support ticket is created 2 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 18 replies, has 2 voices.

Last updated by Shane 2 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#2379791
Screen Shot 2022-06-07 at 1.39.33 PM.png

Tell us what you are trying to do?

display a view ... the filter needs to be seperate.

I have a view, that uses filters, i need to seperate the results from the filter ... below is how I am doing it, using the following shortcodes ..

filter view:
[wpv-form-view name="resource-library" target_id="self"]

display view:
[wpv-view name="resource-library" view_display=“layout”]

problem I am having is the display view also shows the filter as well. see image

di i have the shortcodes wrong ?

#2379829

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jen,

Based on what I see, you are using the correct shortcodes.

Can you send me a link to the search on the frontend so that I can have a look.

Thanks,
Shane

#2379865

hidden link

#2379877

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jen,

Thanks for the link. I can clearly see the issue.

Would you mind allowing me to have admin access to the website so that I can have a more detailed look at this for you ?

I've enabled the private fields for your next response.

Thanks,
Shane

#2380315

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jen,

This should now be working.

All I did was to re-add the shortcode back to the section that you want the results only to be displayed.
[wpv-view name="resource-library" view_display="layout"]

Thanks,
Shane

#2380317

that does not make any since lol but thank you

can u look at one more thing for me. its about this same page

#2380321

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jen,

It could be that caching was preventing it.

Sure what is the issue on this page.

#2380347
Screen Shot 2022-06-08 at 9.25.09 AM.png

on the same page I am trying to place a static element in the middle of the results ... i was just wandering if this is possible. see the attached image.

so the page flow is:

filter
results
*static element*
results

I know I can put 2 views on the same page, was just not sure how to make both views (if possible) to be included in the filter.

in the image I have the static item circle in red. was not sure if this was possible to do or not.

#2380575

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jen,

I can see this being possible in 2 ways.

First you can use the [wpv-item ] shortcode and specify an index where you want to insert the static content.

Example
<Code>
[wpv-item index=5]
SOme static content below.
[/php]

This will replace the 6th index of the view loop with the static content you can still add your template to the index as well so the original content still displays but this gives you the option to modify what appears at the 6th index.

Or you can use [wpv-loop-index] to get the current index and then use the conditional shortcode to insert the static information based on the current index.

Please let me know if this helps.
Thanks,
Shane

#2380655

can you share a link to some documentation. or even an example. Im not familiar with that shortcode at all.

#2380689

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jen,

Here is the documentation for the conditional shortcode.
https://toolset.com/documentation/legacy-features/views-plugin/using-shortcodes-in-conditions/

For the [wpv-loop-index] you can see the documentation below.
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-1195331

Thanks,
Shane

#2380735

so where would the "[wpv-item index=5]" go ?

<wpv-loop>
[wpv-post-body view_template="loop-item-in-resource-library"]
</wpv-loop>

#2380741

i think I got it. man I wish I would of known about this years ago lol

#2381415

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jen,

Happy you were able to resolve the issue.

Can you let me know if everything is ok ? If so then you can go ahead and mark this ticket as resolved.

Thanks,
Shane

#2381709

the only thing I cant get to display is the paging.

this is my code... its not working... and also I would like the paging below the view .. not at the top

[wpv-filter-start hide="false"]
[wpv-filter-controls]

<div class="filter_wrap">

<div class="filter_type">
[wpv-control-post-taxonomy taxonomy="resource-type" type="select" default_label="Filter by Type" url_param="wpv-resource-type"]
</div>

<div class="filter_topic">
[wpv-control-postmeta field="wpcf-area-of-business" type="select" default_label="Filter by Topic" url_param="wpv-wpcf-area-of-business"]
</div>

<div class="filter_search">
[wpv-filter-search-box placeholder="Search Resources" output="bootstrap"]
</div>

</div>

<div class="filter_clear"></div>

[/wpv-filter-controls]

[wpv-pager-nav-links output="bootstrap"]
[wpv-filter-end]