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 know the List category posts has an attribute to show only an excerpt from the post, but I can't seem to get the plugin to work for the Wordpress tag break. Does the plugin recognize the tag?

share|improve this question
add comment

1 Answer

Well... if you are asking if you can get the List category posts plugin to recognize the tag then you can use the "get_extended()" function in WordPress.

Create a new List category template and then use the following code to get the part of the post before the more tag for display.

$moreTag = get_extended($single->post_content);
$beforeMore = $moreTag['main'];

If you are interested I am creating a List category template for use with the TwentyTen theme - specifically for use with a page template that will be used to display WordPress pages in custom Facebook tabs. Let me know and I'll get it to you.

share|improve this answer
    
Thanks - I'll try that now. And for the WP/Facebook items - yes, I'm interested! –  Rushbuff Nov 2 '11 at 20:52
    
Ok - here is the code for the "latest posts" TwentyTen theme List category template. gist.github.com/1401538 –  Brad Trivers Nov 28 '11 at 19:03
add comment

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.