Skip Navigation

[Gelöst] Display a custom field based on another custom field value

This support ticket is created vor 5 Jahren, 9 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 1 Antwort, hat 1 Stimme.

Zuletzt aktualisiert von Travis vor 5 Jahren, 9 Monaten.

Assistiert von: Christian Cox.

Author
Artikel
#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!