WordPress: Read more not working

When you are creating a new wordpress theme, some time read more tag not working you blog. “Read more” are not showing on the front end of your blog though you are using read more tag in wordpress post.

readmore

To solve this problem you need to follow two simple step:

STEP 1:

Add  the <?php global $more;?> before the loop.

STEP 2

Add this code inside loop.

<?php $more = 0;the_content(__('Read more', 'theemename')); ?>
Advertisements

One thought on “WordPress: Read more not working

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s