Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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>');
Required, but never shown