Skip Navigation

[Résolu] How to use conditional in view when shortcode has a field="fieldname"

This support ticket is created Il y a 4 années et 7 mois. There's a good chance that you are reading advice that it now obsolete.
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 0 réponses, has 1 voix.

Last updated by Laura Il y a 4 années et 7 mois.

Assisted by: Christian Cox.

Auteur
Publications
#1344489
Current User conditional VIEW.png
Current User conditional.png
Current User conditional WITH conditional in use.png

Tell us what you are trying to do?
I'm trying to have a view with a conditional to only show CPT's that have the same user ID as the current user.

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?
hidden link

where final-reports is the page where the view with the conditional is not working.
If you need login info let me know - this is a dev site so can play around with it.

I attached a screenshot of the page without the conditional that list all the test data and another screenshot shows the conditional in the view template.A third screenshot show the page when the conditional is used.

I tried many different iterations of the conditional varying the use of single and double quotes but just can't seem to get this to work. Can you see anything wrong or am I needing to go about this a completely different way?

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