Skip Navigation

[Resolved] Short code For only loop View

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

Problem:
Short code to display only loop View, do not include search form

Solution:
To display only the search result section irrespective of how you added the search form.:

[wpv-view name="view-slug" view_display="layout"]

Where:
- Replace "view-slug" with your original view slug.

You can find the proposed solution in this case with the following reply:
=> https://toolset.com/forums/topic/short-code-for-only-loop-view/#post-2006255

Relevant Documentation:
=> https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-view
=> https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-form-view

This support ticket is created 4 years, 1 month 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 4 replies, has 2 voices.

Last updated by kevinQ 4 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#2006171

Hello

As we know we do have a Search filter option available with view only

But we don't require these both at the entire page we just want to search filter for some of the feature and for other features we require "View" Only

We have done R & D for this scenario but those weren't fulfilled our requirements they didn't get matched
https://toolset.com/forums/topic/wpv-view-shortcode-hide-form/

Also, we want short-code only for view only and make sure that form doesn't display into that

If you have any logic or techniques to fix this just let us know

Thank You!

#2006205

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I would like to know - are you using Toolset Blocks or Classic view to build your views?

As well as, if you can say what exactly you do not want to display at what part and on what condition, a test case example would help me to understand first your requirement and then I'll be able to guide you in the right direction.

#2006239

Hello @mitesh,

Mostly we have used Classic View, but we use an Elementor on our site. So as per our requirement we use only the Form feature in some sections using shortcodes like this : [wpv-form-view name="new-plans-view-list" target_id="self"], but I have a query if I want to use it only for View (not for Search form) using shortcode, how can I set the logic for the same?

I have read your documentation and other support tickets too but you have suggested this: https://toolset.com/forums/topic/wpv-view-shortcode-hide-form/

Which is not matching to my requirement
So tell me how I can display only the View section using shortcode.

Thanks.

#2006255

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

To display only the search result section irrespective of how you added the search form.:

[wpv-view name="view-slug" view_display="layout"]

Where:
- Replace "view-slug" with your original view slug.

But you need to control how you want to display your search form.

More info:
=> https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-view
=> https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-form-view

#2006353

My issue is resolved now. Thank you!