[Plugin: Postie] Setting a default CAPTION
-
Hello. I’m looking for some help.
I would like to set a default image caption. So that if I don’t explicitly define it using img1 caption=’foo’# in the message body (my template utilises the {CAPTION} tag), then it will default to the message subject. I’ve tried for days now but can’t get it working!
In postie_functions.php, I’ve identified this piece of code, which is where I think I need to make it happen:
} else {
$value = str_replace(‘{CAPTION}’, ”, $value);However, replacing it with:
} else {
$value = str_replace(‘{CAPTION}’, $subject, $value);doesn’t appear to work. Perhaps the $subject is being reset somewhere, as the caption still comes out blank.
Can anyone help me in trying to do this? You would make me very happy!
- The topic ‘[Plugin: Postie] Setting a default CAPTION’ is closed to new replies.