Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have Query_posts in my page. the posts have tags to separate for read more, But while doing query posts it is pulling all content for <?php the_content('read more..');?>

share|improve this question
    
have you considered the codex: codex.wordpress.org/… ? –  Michael Jun 30 '11 at 11:49
    
what code you are implemented already? –  Ramkumar Jun 30 '11 at 11:51

1 Answer 1

this is for the codex:

Please remember that the "Read More" tag is used only on the Home page which shows the latest posts. It does not work in "Pages". If you want to turn it on in Pages too for showing a set of partial posts, use the following code inside the loop for the dynamic content:

<?php
global $more;
$more = 0;
?>
//The code must be inserted ahead of the call to the content

<?php the_content('Continue Reading'); ?>

So basically it means that you need to golbalize $more and set it to zero (0) before your query.

share|improve this answer
    
codex.wordpress.org/Function_Reference/… as Bainternet describes –  Jonnybojangles Dec 31 '11 at 5:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.