I have the following in functions.php:
function twentyten_continue_reading_link() {
global $id;
return ' <span class="readmore"><a href="'. get_permalink($id) . '" title="' . the_title_attribute( array('echo' => 0, 'before' => 'Permalink to: ', 'after' => '')) . the_title() . '">' . __( 'Read More »', 'twentyten' ) . '</a></span>';
}
which creates a "Read More" link after an excerpt with a title attribute.
I want to do the same thing in another part of the site, but the code for this 'Read More' link is different (see below). Since it's a php echo statement the same syntax won't work and I don't know how to translate what I have above to work in the situation below. I want to keep the href= $permalist[$j], but add a title attribute after it.
echo "<p class=\"readmore\"><a href=\"$permalist[$j]\">Read More »</a></p>";