[Resolved] Passing current author as shortcode attribute
This thread is resolved. Here is a description of the problem and solution.
Problem:
The issue here is that the user had their view filter to get the value from a shortcode attribute, but wanted to pass the current author into that shortcode attribute.
I have a View to filter all dealer post according to the field 'dealer-sales' equal to the shortcode attribute "salesrep", may I know how I can pass the current author as the shortcode attribute in the Views
For my case, the owner of the dealer post is the user (who has the dealer role) but not the user with sales role. So I add a field to the dealer post and record the relationship between the dealer post and the sales role.
In WP5.1.1, I don't know how to pass the attribute to the View Shortcode like