Don’t apologize at all, in fact you were very helpful and I thank you very much. At this point I’ll give you my thoughts. I believe your plugin works well and correctly; I’m telling you this because I did some tests with custom code added via functions.php and, you won’t believe it, the problems are absolutely the same. Even with these scripts the post title is injected into the alt of the image and creates the duplicate of the title inside the Post Loop. Below I leave you some examples of filters used via function that return the same problems.
Regarding the WPBakery Page Builder plugin, the theme has configured it in a very profound way, customizing many features of the default services, which is why going into detail becomes truly impossible. Let’s be clear, Ronneby for me is one of the best WordPress themes I have purchased and I strongly believe this, it is probably as complex as it is beautiful.
However, I wrote to their support asking for help on how to get what I need; If you like I will keep you updated.
I thank you so much for your professionalism, your availability towards everyone; I can tell you that for being “free” users we are very lucky to have support like yours ??
Filters that did not give a positive result
add_filter( 'the_title', 'ag_custom_post_title_link' );
function ag_custom_post_title_link( $title ) {
$postdate = get_the_date( 'Y-m-d' );
$nows = date( 'Y-m-d' );
if ( $postdate == $nows) {
$title = '<span class="new-badge">New</span>'.$title;
}
return $title;
}
Of course you can change and use the element type as you wish; in my case it didn’t work
es:
$title = '<div class="new-badge">New</div>'.$title;
$title = '<span class="new-badge">New</span>'.$title;
or image:
$title = '<img src="https://example.com/img.gif">'.$title;