Skip Navigation

[Resolved] Date range does not display anything

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

Problem:

Display a view with search form + search result.

Solution:

You can try with shortcode [wpv-view], for example:

https://toolset.com/forums/topic/date-range-does-not-display-anything/#post-1135931

Relevant Documentation:

https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-view

This support ticket is created 6 years, 4 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 Luo Yang 6 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1135641
c4.JPG
c3.JPG
c2.JPG
c1.JPG

I am trying to:

In a Custom Post, I have a "date" custom field which is type "date".
I created a view custom search on this Post. I followed the instruction in https://toolset.com/forums/topic/post-date-search/

The date filter comparison is "Number".
Te view has date range "from" and "to". The view name is "tests9".

From a page, have a short code of a view. Page name is "testview"

Link to a page where the issue can be seen: hidden link

I expected to see: a Custom post matches the range specified

Instead, I got: nothing is displayed as the result

This is a test server, I provide the credentials below, you can change anything.

thanks

#1135931

Hi,

Thanks for the details, I can login your website and see the problem, please edit the page "testview", you are using the shortcode:

[wpv-form-view name="tests9"]

It will output the custom search form only, if you want to output the search result too, I suggest you change it to shortcode [wpv-view], for example:

[wpv-view name="tests9"]

More help:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-view
Will render the view on your page, post or in another view or Content template.

#1136167
c5.JPG

hi Luo,

The page displays empty when i have short code [wpv-view name="tests9"].

Would you please help. thanks

#1136518

I have done below modification in your website:
Edit the problem page:
hidden link
in section post content, click "text" tab, paste the shortcode:
[wpv-view name="tests9"]
and update this page, then test again:
hidden link

It works fine. please check if it is fixed now.

#1136951

My issue is resolved now. Thank you!

#1137342

You are welcome, seems there is a problem in your website visual editor, I suggest you switch to "Text" tab when you setup any shortcode.