[Résolu] Filter a view to show posts published AFTER the post where the view is displayed
This support ticket is created Il y a 4 mois et 1 semaine. 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.
Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.
Tell us what you are trying to do? I have a view that is displaying related posts on the single post page. I want this view to only display posts that were published AFTER the date of the post where the view is displayed.
Is there any documentation that you are following? I looked through the date filters documentation but couldn't find an answer.
Hello. Thank you for contacting the Toolset support.
Can you please share admin access details and let me review your current post-relationship and view and then I will be able to guide you in the right direction.
When you say date - you want to target native post publish date or you have custom date field?
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
With your view I've change the "Post date" query filter as:
- lien caché
Post date filter
Select posts whose
Published date is after or equal to: year:VIEW_PARAM(year), month:VIEW_PARAM(month), day:VIEW_PARAM(day
I've created the following Toolset content template that will hold your view as given under:
- lien caché