Skip Navigation

[Resolved] Complete list of Post References

This support ticket is created 6 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by Ben 6 years, 1 month ago.

Assisted by: Nigel.

Author
Posts
#1122020

Ben

Is there any way of pulling up a list of all places on my site where Post References are being used? And a list of all Post Reference fields both active and dormant?

#1122583

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Ben

As I mentioned in your other thread, Post References are simply stored as custom fields, i.e. in wp_postmeta.

It would be simple enough to create a list of posts that use post reference fields using a View—as long as you know the slugs of the fields.

Create a View which displays posts of any type that may use post reference fields, and add Query Filters for the post reference fields in question. Because the field stores the post id of the connected post, you should be able to use the field is a number > 0 as a filter to find posts which have a value stored for the field.

#1122753

Ben

Thank you Nigel!