Skip Navigation

[Resolved] I want to filter posts by meta wpv-post-date in a view

This support ticket is created 5 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
- 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)

Tagged: 

This topic contains 2 replies, has 3 voices.

Last updated by nicholasM 5 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#1462385

I am trying to:filter posts using post meta date (wpv-post-date)

Link to a page where the issue can be seen:

I expected to see:

Instead, I got:
In a view I want to filter posts based on their publishing date. Publish date shortcode for View is wpv-post-date

I tried following query filter

<div class="form-group">
<label>[wpml-string context="wpv-views"]date[/wpml-string]</label>
[wpv-control-postmeta field="wpv-post-date" type="date" url_param="wpv-post-date"][wpv-filter-submit output="bootstrap"]
</div>

Please guide I am doing wrong to filter posts by post date.

#1462611

Shane
Supporter

Languages: English (English )

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

Hello,

Thank you for contacting our support forum.

Unfortunately you're not able to have a frontend filter for the published date for posts. However you can have a filter for custom date fields created in Types.

For the default publish date on the post you can only have a static filter for this field. I hope I was able to clear this up for you as its not possible to do.

Thanks,
Shane

#1561829

it would be a nice functionality to have as your competitors in the search/filter space do have this solution hidden link