I have created two types of pages the author: one for the 'customer' and one for the 'dealer'.
How to create a link in the list of entries depending on the author entry?
If the author of entry is 'customer' visible link to the 'customer page', and if author of entry is 'dealer' a link to the 'dealer page'.
Unfortunately, both solutions are bad.
The first defines the role of the user browsing the page and not the author of the post, the second requires a specific author's name (I can not predict).
Filter by author - I understand that you must first create an additional view with links to the sites of authors and insert them in the loop, which also needs to be done in two versions - one for the 'customer', one for 'dealer', right?
The ideal solution would be a shortcode [wpv-conditional if = "(" wpv-post-author info = 'role'] 'eq' dealer ') "] but it does not work 🙁
Filter by author - I understand that you must first create an additional view with links to the sites of authors and insert them in the loop, which also needs to be done in two versions - one for the 'customer', one for 'dealer', right?
==> Yes - correct. you should create two separate views.
The ideal solution would be a shortcode [wpv-conditional if = "(" wpv-post-author info = 'role'] 'eq' dealer ') "] but it does not work.
=> Well - author meda does not contain role. You can see with WordPress codex with the following link no "role" field is available for author meta.
=> https://codex.wordpress.org/Function_Reference/the_author_meta