I can't use your "Use Website URL as Profile URL" feature. It only shows the author's article detail page. I have updated the link in the profile page. I have tried the 2 supported code snippets in the 2 articles:
The option "Use Website URL as Profile URL" works only if you fill the URL in the "Website" field.Β
In case you want to say thank you! π We'd really appreciate if you leave a good review on the plugin page. This is the best way to say thank you to this project and the support team.
@asti oh no. I mean is url of admin, not guest. I checked Use Website URL as Profile URL and put admin url website but it still show link, only show link author page
Β I mean is url of admin, not guest. I checked Use Website URL as Profile URL and put admin url website but it still show link, only show link author page
I understand our question. I've just explained how the option works. Everything is correct with the option. It works fine. As I've already mentioned, this option works only from the frontend. I.e, if user fill the URL on the Website field.Β
It doesn't have any relation to the dashboard user's website sections. Those are being saved on different Database tables. That's why it doesn't work in your case.Β
I'm going to ask developers if there is any solution we can help you. I'll update this topic once I've received any news for you.Β
In case you want to say thank you! π We'd really appreciate if you leave a good review on the plugin page. This is the best way to say thank you to this project and the support team.
add_filter("wpdiscuz_profile_url", function ($profile_url, $user) {
if (!empty($user->ID)) {
if (in_array('administrator', $user->roles)) {
$profile_url = get_home_url();
}
}
return $profile_url;
}, 999, 2);
Put it in the active theme functions.php file.Β
In case you want to say thank you! π We'd really appreciate if you leave a good review on the plugin page. This is the best way to say thank you to this project and the support team.
This is a new code not the one provided in previous post.Β
In case you want to say thank you! π We'd really appreciate if you leave a good review on the plugin page. This is the best way to say thank you to this project and the support team.
Thank you for taking the time to share the solution. We really appreciate it.
In case you want to say thank you! π We'd really appreciate if you leave a good review on the plugin page. This is the best way to say thank you to this project and the support team.