i am developing a plugin where i need that on each post title a small icon added next to post title.
my code is below. it is adding icon but i need both seperately clickable.(both icon and title is pointing to same url action).
add_filter( 'the_title', 'modified_post_title');
function modified_post_title ($title) {
if ( in_the_loop() && !is_page() ) {
$title = $title." <img src='".URL."/images/yellow.png' class='AtF'>";
}
return $title;
}
Any suggestion appre.
thnx