[wp-hackers] Plugin Problem - Working sometimes...
viper at viper007bond.com
Fri Jul 25 04:17:15 GMT 2008
Yeah, filters are the way to go here. You're doing it the really, really
hard (and I guess technically "wrong") way.
On Thu, Jul 24, 2008 at 9:08 PM, Gaarai <gaarai at gaarai.com> wrote:
> Why are you directly modifying the post at all? If you think about it, this
> would work much better if you are just appending the data to each post when
> it is shown (I.E. hook to the the_content filter). The reason is simple: if
> the author ever changes their info, your current system doesn't have a
> method for updating the data that is already added to the posts.
> Travis Quinnelly [MUO] wrote:
>> I have an issue with a plugin apparently not "hooking" all the time.
>> This particular plugin appends each article with a custom "author footer"
>> which is saved in each author's profile page to the db. It grabs the
>> footer, and places it at the end of the_content on publish.
>> The problem is, that it doesnt always do it. It works about 1/3 of the
>> and I cant figure out why.
>> Here's the code over at wordpress.pastebin.com:
>> Any ideas why this is only partially working? Shouldnt it work every time
>> post is published?
>> Would the "scheduled" posts to be published get the same action that a
>> to the "Publish" button would?
>> Any help is appreciated.
>> Travis Quinnelly
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
Viper007Bond | http://www.viper007bond.com/ | http://www.finalgear.com/
More information about the wp-hackers