Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Even when I tried to access the page using URL as given under:
=> hidden link
It says:
Oops! That page can't be found.
Have you change anything on your site - changed any settings?
Yes, I changed the solution https://toolset.com/forums/topic/author-page-depending-on-the-role-of-the-user/page/2/#post-540155 on https://toolset.com/forums/topic/problem-with-own-shortcode-in-content-template/#post-542533
This allows the magician to have two addresses:
hidden link... and
hidden link...
[wpv-conditional if="( '[author-role]' eq 'customer' )"]
<a href="<em><u>hidden link</u></em> format="meta" meta='ID']">[types usermeta='nickname' user_is_author='true'][/types]</a>
[/wpv-conditional]
[wpv-conditional if="( '[author-role]' eq 'dealer' ) OR ( '[author-role]' eq 'administrator' ) "]
<a href="<em><u>hidden link</u></em> format="meta" meta='ID']">[types usermeta='nickname' user_is_author='true'][/types]</a>
[/wpv-conditional]
Is this a problem?
Please share this private message with me, I will send you user data that you can test.
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
well - I would like to clear doubt here - you want to display role base user info or specific user ID base user information. Could you please confirm.
Could you please explain your requirement from first with problem URL so that I can guide you in right direction. This is confusing.
Please share problem URLs and your expected output.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Well - you are still missing something here or you did not understand well.
You are using following views - this view set to display information filter by author_id and you also added the dealer view at the end of your content template.
hidden link
[wpv-view name="ogloszenia-dealera"]
Same with this view - you added another view at the end of template.
=> hidden link
[wpv-view name="ogloszenia-dealera"]
If above is expected - then with author_id as per wordpress API you can filter user_by d | ID | slug | email | login.
=> https://developer.wordpress.org/reference/functions/get_user_by/
So, if you want to filter your view, view offers to filter view by ID or username(login).
So, as you do not want to filter with author_id=ID, you can set your view to filter by user by login you need to pass author_id=login.
For example:
=> hidden link
And your view filter by username as:
Select users with the username determined by the URL parameter "author_id" and with role "any"
eg. yoursite/page-with-this-view/?author_id=admin
Sorry, but I do not understand anything ...
Minesh, thank you for your help and trying to solve the problem, but let's leave that up for now. There are more important things, and it introduces too much confusion (which I did not expect).
I have restored the previous settings.
Thank you, we'll come back to that later, ok?
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Ok fine - thank you. You may close ticket and open new whenever you would like to open a new issue.