Navigation überspringen

[Gelöst] Conditional Logic Broken With Shortcodes

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

Dieses Thema enthält 0 Antworten, hat 1 Stimme.

Zuletzt aktualisiert von MarcelS443 vor 5 Jahren, 10 Monaten.

Assistiert von: Christian Cox.

Author
Artikel
#1205811

Hey Guys,

Ok so I found a strange bug I think...
I have a shortcode that I use which returns the current logged in username as a string, so I added the following shortcode to a page, [wpv-conditional if="( '[wpv-post-author]' eq '[wp_get_current_user]' )"] and it does not match, even if the username is correct...

When I replace [wp_get_current_user] with a string username, it works perfectly, if I set [wp_get_current_user] and [wpv-post-author] outside of the statement, it shows the correct values, so it should be matching it, but when I use a shortcode in the "value" field space it does not match to anything it seems...