Зайдите в папку вашей темы WP, отредактируйте файл «functions.php». Добавьте код так:
function remove_anchor($data)
{
// the code for removing the anchor here
// (not sure if you need help there, too).
// you will work on the $data string using DOM or regex
// and then return it at the end
return $data;
}
// then use WP's filter/hook system like this:
add_filter('the_content', 'remove_anchor');
add_filter
означает, что каждый раз, когда отображается сообщение, вызывается функция remove_anchor
.
jQuery, вероятно, проще, вам просто нужно идентифицировать изображения, а не делать их кликабельными (это не проверено)
$(document).ready(function()
{
$('#post a.some-class-name').click(function()
{
return false;
}
});