Action
Queue Post
Uses last line in draft as tags.
Steps
-
script
// strip whitespace and define a new // [[last_line]] tag with last line with content // for use in latter steps var lines = draft.content.trim().split('\n'); var s = ''; if(lines.length > 0) { s = lines.pop(); } draft.setTemplateTag('last_line', s);
-
script
// remove the last line (tags) before posting var lines = draft.content.split("\n"); lines.pop(); draft.content = lines.join("\n");
-
wordPress
titleTemplate [[title]]
template [[body]]
postStatus draft
format standard
categoryTemplate News
tagTemplate [[last_line]]
slugTemplate excerptTemplate
Options
-
After Success Trash Notification Info Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.