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

Your function sends the tilte to the theme.
The theme add the link (or not)
frorm the defalt 2013 theme:
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>

i am not getting you. how can i adjust above link code to plugin function which i already mention above. acctuly.. my goal is to fire ajax whenever a user click on yellow.jpg icon. plz see attached file.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.