i've implemented a jQuery gallery for displaying several images within a post. the problem is that the_content(); also displays the post image. any ideas how to filter it? thanks
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
you can add a filter to the_content hook to strip the images something like:
|
|||||
|
|
This is better:
Change 80 to whatever count words. |
|||||
|
post_typewould beattachmentsand then usewp_get_attachment_image(codex.wordpress.org/Function_Reference/wp_get_attachment_image) and manually build your gallery in the theme. The only difference would be the lack of[gallery]in your post content. – eileen.carpenter Mar 1 '11 at 15:53