Sauter la navigation

[Résolu] Filter by a custom field (from plugin Post Expirator)

This support ticket is created Il y a 5 années et 5 mois. 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)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par matthewL-7 Il y a 5 années et 5 mois.

Assisté par: Minesh.

Auteur
Publications
#1351173

Hi

Post Expirator stores the date for a post in the field "_expiration-date"

But for some reason when setting up a Toolset view this doesn't show up as an option to order or filter the content by?

I tried adding it in "Third-party shortcode arguments" but this didn't make any difference.

How come it isn't showing up?

Cheers

#1351517

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

To activate the hidden custom field for order by option available in view, you should
go to the Toolset->Settings page and click the Front-end Content tab. Click Select custom fields button in the Hidden custom fields section. In the dialog box that opens, select the "_expiration-date" field from the list and click Apply and refresh your view's edit page and check with order by section. You will be able to see the "_expiration-date" field.

More info:
=> https://toolset.com/documentation/user-guides/using-third-party-hidden-fields/

#1352111

That’s great thanks! I did try to find documentation on this but couldn’t manage to.