Wow, weird. Not sure why you’re getting a link. You should only be getting the img element.
I’ll try to duplicate, but maybe this approach will help you. https://wordpress.org/support/topic/receiving-only-the-avatar-url?replies=3
Well the idea is to change the avatar, so when clicking on it, nothing happens.
The other solution did not solve the problem
I’m sorry, I guess I don’t understand how you are getting a link.
mt_profile_image
is just a wrapper for get_the_post_thumbnail
, and neither return a link unless some other code (plugin,theme) is creating a link using the post_thumbnail_html
filter.
please see here: http://dev.millwardbrownnordic.com/blog/your-monthly-creative-treat-lifes-better-when-were-connected/
when you click on the avatar, you get directed to http://dev.millwardbrownnordic.com/?mt_pp=1609 but i don’t want the picture to do so, in the code, it is the plugin that doing so?
i have checked all theme settings thru and not found any avatar link settings. also the link ?mt_pp= is a refer of the plugin not the theme or wordpress.
Sorry for the delay, for some reason I didn’t get an e-mail alert to your reply.
I just committed 1.2.3, which should hopefully resolve this thread.
I noticed a few things from your support request.
1. The post type I use should be 100% hidden, but it wasn’t.
2. The possibility of someone able to filter the output was causing some unexpected results.
I fixed the post type so it is now 100% hidden. The permalink you had should now 404, which is what should happen with a hidden post type.
I also refactored the mt_profile_img
function so that there is no output filter unless you use the one I supply.
Please let me know if this update resolves the issues.
akofoed,
I’m going to mark this as resolved since this should now be fixed. Please feel free to reply if otherwise.
Thanks!