How to show more links in custom query_posts and custom loops

On this page http://atthy.com/blog/

I use Custom template to display a list of blog posts. Since I am using the home.php file to display a custom homepage. I am using query_posts() from my custom template. I created the page in wp admin using the custom blog Home template. All perfectly. But I can’t get read more.. links to work when using the_content('read more..')

When I use the_content('read more..') , the contents of the entire record are displayed without cutting after <!--more--> , and the link to the link is not displayed.

I read through wp codex http://codex.wordpress.org/Function_Reference/query_posts and even reset global $more to 0

Here is the page template I am using. http://pastebin.com/VTvN5dtT

What am I doing wrong? Please, help.

+4
source share
2 answers

I have not tested this myself, but according to http://codex.wordpress.org/Customizing_the_Read_More#How_to_use_Read_More_in_Pages ,

 global $more; $more = 0; 

must be inside the loop and before the_content('read more..'); . As such, in your pastebin code, move the lines from 15-16 to 30. As I said, I have not tested this, but give it a twist and see what happens.

+5
source

You need to make sure that the instructions:

 global $more; $more = 0; 

placed after calling the_post () function

+1
source

All Articles