read more link / page
-
Hi,
I’ve created a custom theme and I’m using a template for a blog page. In my template I have a code that calls specific posts according to category. So far so good, problem is when post contains “read more”. Link is active but when I click on it I only get an empty page instead of an whole article.
This is my code:
<?php $args = array( 'category_name' => 'blog', 'post_type' => 'post', 'posts_per_page' => 10, ); query_posts($args); while (have_posts()) : the_post();?> <?php global $more; $more = 0; ?> <?php echo '<p class="date"><i class="fa fa-calendar"></i> '; echo get_the_date(); echo '</p>'; echo '<h2>'; echo '<a class="permaLink" href="'; echo the_permalink(); echo'" title="'; echo the_title_attribute(); echo'">'; echo the_title(); echo '</a>'; echo '</h2>'; echo '<p class="posts">'; echo get_the_content('<br/><br/>Read more...'); echo '</p>'; echo '<hr/>'; ?> <?php endwhile; ?>
Any help would be appreciated. Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘read more link / page’ is closed to new replies.