A lot of articles here seem to deal with the “read more” link not displaying. Mine is displaying fine, it’s just not actually taking us to a page that displays the full blog post. You can see how it’s displaying here (Read More >>):
Right now when I click on “Read More >>” I get this:
In my code, in home.php, I’m displaying the blog posts like:
<?php $paged = ( get_query_var('page') ) ? get_query_var('page') : '1'; $args = array('post_type' => 'post', 'posts_per_page' => 3, 'order' => 'ASC', 'orderby' => 'title', 'paged' => $paged); $posts = new WP_Query($args); if ($posts->have_posts()): while ($posts->have_posts()) : $posts->the_post(); get_template_part( 'content', get_post_format()); echo "<div class='thepost'><p class='post-date'>".get_the_date()."</p>"; echo "<h2 class='post-title'><a href=".get_permalink().">".get_the_title()."</a></h2>"; //echo "<span class='post-image'>".the_post_thumbnail()."</span>"; the_post_thumbnail('post-thumbnail', ['class' => 'post-image']); echo "<p class='post-paragraph'>".get_the_excerpt()."</p>"; echo "<p><a href=".get_permalink()."><span class='read-more'>Read More >></span></a></p> </div>"; endwhile;?>
So what do I need to change about this line:
Read More >>
"; so that it links to the complete post that the user clicks on?
I’ve looked through the codex on how to customize the read more link, but I’m just finding
“Users can then continue reading more as you have enticed them with your summary introduction, by clicking on a link to the full article. Themes usually include this link in the title and the above methods will generate it by default trailing your teaser.”
I must be missing something as I’m reading through the codex. Thanks!