[wp-hackers] Insert stuff into the excerpt based on a custom field, wipe out custom field

Matt Martz matt at sivel.net
Thu Sep 24 19:47:15 UTC 2009

On Thu, Sep 24, 2009 at 03:44:28PM -0400, Matt Martz wrote:
> The problem is that you are hooking save_post and performing a
> wp_update_post within the callback.  wp_update_post causes the save_post
> action to be fired again and thus you are creating a processing loop.

using a filter probably content_save_pre and filtering the content
before it is saved to the DB would be a better choice.

Matt Martz
matt at sivel.net

More information about the wp-hackers mailing list