Skip Navigation

[Resolved] Display a custom field based on another custom field value

This support ticket is created 5 years, 2 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 1 voice.

Last updated by Travis 5 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#1195573

We have a custom post type for our agent sales called Reservations. Each post contains the agent's name, email, total sales and a few other sales figures specific to that agent. We import a CSV file with the sales data to keep it up to date.

We're trying to display the agent's sales data on the frontend in their custom agent dashboard.

I've tried to display the field using a conditional statement (if agent email = current user email, display field) but that's not working.

Can you provide some ideas/suggestions for how to display the agent sales field when the agent's email address matches the corresponding agent email for that custom post type?

Thank you very much!

#1195611

My issue is resolved now. I created a custom shortcode. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.