Automatically Post WordPress Posts to Discord

Posted by

I F T T T is short for If This Then That. 

Using IFTTT you can easily automate WordPress to Discord. just follow the given steps :

What you need

To set this up, you will need the following:

  • A Discord server with at least one channel
  • A WordPress site
  • An account on IFTTT, which is what we’ll be using

Step 1: Create an IFTTT account

you will need to set up an account on the website IFTTT.

Step 2: Create a webhook

A webhook is what you need to get it to work. In your Discord server, go to Integrations in your Server Settings and choose Webhooks. Click the New Webhook button and you will be asked what channel the messages from the webhook will be posted. Make sure you give your webhook a name and once you’re done creating it, click the Copy Webhook URL button.

Step 3: Create your applet

Return to IFTTT and click the Create button on the top page. Click the Plus button right next to “this.” Search “WordPress” and click it once it appears. Once you do so, click “Any new post” as the trigger. If you’re asked to enter your blog details, enter the URL of your WordPress site (you may also need to log in with your WordPress account). After that, click the Plus button again next to “that” and search “Webhooks,” followed by choosing the “Make a web request” trigger.

Step 4: Program the actions

we’re almost done.

When you get to the action fields screen, paste the URL of your webhook into the URL box.

Choose POST for the Method and application/json for the Content Type.

In the body, copy and paste the following:

{"username":"Webhook name", "content":"(blog name) just posted this on their blog at {{PostPublished}}: {{PostUrl}}"}

Once you’re finished, click Create Action. Review the applet and click Finish.

Your applet is now ready to post every new article from your website to  Discord.

Create a random post to try it out. It may take a while for the IFTTT action to execute, so be patient. The first time it ran it took around 30 – 60 minutes to post the message on Discord, but in some cases it can take longer.

If you have IFTTT Pro, the execution time will be shorter.

Feel free to leave a comment below or reach me on Instagram @iamshubhamkumar__.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.