WordPress.org

Support

Support » How-To and Troubleshooting » the_content showing the full post

the_content showing the full post

  • I have some code to display the latest two posts in a category, however I only want it to show until the more tag, the code below however SHOULD work as far as I know but shows the whole post..

    global $post;
    
    	$myposts2 = get_posts('numberposts=2offset=0&category=12');
    
    	foreach($myposts2 as $post) :
    setup_postdata($post);
    echo"<h1>Chip Tricks And Card Shuffling</h1>";
    echo"<h2>Featured Trick : ";
    	echo the_title();
    echo"</h2>";
    	the_content("Read More..");
    		endforeach;

    Any Ideas

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘the_content showing the full post’ is closed to new replies.