Dates are not displayed –
-
First off, I love the plugin! I am aware that you do have an extension for Slack, but I am not interested in purchasing that at this time because I’m having no trouble setting up the the webhooks, except for this one issue with dates.
I have Webhook Json notifications set up for various triggers. When I try to include dates though for all of the options I’ve tried, it saves correctly but in the debugging information and on Slack, it is not showing the date. Doesn’t matter what metatag I use, I’ve tried every option provided.
Triggers I’ve used:
- Post Published
- Post Scheduled
- Post Updated
- Comment Added
- Comment Published
- User Login Failed
I’d try more but I obviously have something set up wrong somewhere.
Here is what the message looks like in Slack: https://ibb.co/56rgSNQ
Here is the json I’m using for the “Post Scheduled” trigger notification.
{ "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "{post_title} by {post_author_user_display_name}" } }, { "type": "section", "text": { "type": "mrkdwn", "text": "{post_excerpt}" } }, { "type": "context", "elements": [ { "type": "mrkdwn", "text": "*Updated by:* {post_last_editor_display_name}" }, { "type": "mrkdwn", "text": "*Scheduled:* {post_publication_datetime}" } ] }, { "type": "actions", "elements": [ { "type": "button", "text": { "type": "plain_text", "emoji": true, "text": "Edit" }, "url": "https://ifatceg.com/wp-admin/post.php?post={post_ID}&action=edit", "value": "click_me_123" } ] } ] }Here is the most recent try via the debugging:
{ "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "Test Post by Kyle Boas" } }, { "type": "section", "text": { "type": "mrkdwn", "text": "*Excerpt:* This is an excerpt." } }, { "type": "context", "elements": [ { "type": "mrkdwn", "text": "*Updated by:* Kyle Boas" }, { "type": "mrkdwn", "text": "*Scheduled:* " } ] }, { "type": "actions", "elements": [ { "type": "button", "text": { "type": "plain_text", "emoji": true, "text": "Edit" }, "url": "https://ifatceg.com/wp-admin/post.php?post=8235&action=edit", "value": "click_me_123" } ] } ] }Any help would be appreciated! I’ve been at this for about 3 days searching for the answer.
The topic ‘Dates are not displayed –’ is closed to new replies.