I have a blog page setup to list posts. The "Read More" link is added by
$more = 0;
the_content('<a href="#" class="button">Read More</a>'); ?>
How do i add the_permalink in where the "#" is without breaking the php?
Use get_permalink. Otherwise this is basically a PHP string concatenation question.
the_content('<a href="'.get_permalink().'" class="button">Read More</a>');
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2 years ago