Posted  by  admin

Wordpress Discord

Manually Linking Articles on Discord is a Pain…

If you’re like me, you might run a Discord server where like-minded people tend to congregate, relying on it for receiving notifications and updates regarding your latest activities. If you happen to also write WordPress articles, you probably want to share them with your Discord members. Manually having to share every article is a pain; automatically posting WordPress posts to Discord was something I wanted almost right away.

I expected to find a bunch of easy solutions from a simple Google search — there are lots of solutions available for automatically posting new Tweets and YouTube videos and all the other useless content people make to Discord. I could not find anything simple that worked out of the box when it came to WordPress however — so I’m going to show my method of automatically posting WordPress posts to my Discord.

Wordpress Discord Bot

This will require you to be able to do a few things. Most importantly, you’ll need to be able to manually upload a plugin on your WordPress server. So, if you don’t have admin access to the machine or directory the site resides in — my solution won’t help you. I looked at what’s involved in order to upload a plugin and get it approved on the official WordPress website, and I’m not interested in dealing with that. Sorry!

Creating a Webhook in Discord

WordPress Chat is a group of like-minded WordPress Developers, Coders, Designers, & Hosting Providers of all skill levels, talking and helping each other learn & improve skills (and vent) about WordPress. Come chat, get help, share expertise, and hang out.

Pull up a seat at The Moogle's Pom Tavern! Here you can find out more about the team's Discord channel, including a rundown of the kinds of folks you'll find and a link to the channel itself. Perhaps the biggest part of streaming for all of us is community, and we want to build something. WordPress discord? Log in or sign up to leave a comment Log In Sign Up. One I created a couple years ago. Pretty active (less so on weekends), but a good group typically on.

The first thing we need to do is set up an integration point on our Discord server. Go to your server and find the channel you want the announcements to appear in. Once you’ve made your choice, right click on the channel to edit its settings.

Once we have the settings up for the channel, let’s navigate on over to the “Integrations” section, and then add a new Webhook.

A new section will appear for the Webhook we just made. Give it a little bit of customization, but most importantly: grab that Webhook URL! We’ll need it later.

That’s it! Everything you need to do on Discord is done. You’ve actually just created a bot of sorts. It will just sit there doing nothing, however, until we make use of that Webhook URL we just copied.

Adding the Post to Discord Plugin to WordPress

Now you just need to upload this little plugin I wrote to your /wp-content/plugins directory. Create a folder there named post-to-discord (or whatever you want), and in there create a file named post-to-discord.php with the following code in it:

After you have done this, go to your Plugins page on WordPress and activate the Post to Discord plugin. Finally, go to Settings -> General and scroll down to input the Webhook URL we copied earlier into the input box added by the plugin.

Please be advised that of all the computer languages and technologies out there, I am least knowledgeable about this beast known as PHP! So, if I’m committing any cardinal sins with it, I apologize! It works for me though, and hopefully it works for you.

This should cause a “ping” to go off on your Discord server when you publish a new post, and it should only go off for posts that are indeed new. It also will filter out instances of the strange temporary post type that WordPress generates when you customize your CSS via the Customize page.

Happy writing and happy pinging!

~Omni

SnakeBot is a new and friendly multi-purpose Discord bot, with Moderation, Music, Image Manipulation, Giveaways, Level System and much more!

SnakeBot is a fun new bot with moderation features, including automod, anti spam, warnings, mod logs, customizable settings as well as, Fun, Music, Games, Giveaways, Image Manipulation, Level System and Reputation, Memes, Weather Commands and a lot more!. It is the perfect choice for you! We invite you to test it out!

The prefix is changeable for your server using the prefix command. Set your guild configuration by using ?settings list all to see all the settings. This is required for some of the moderation features including the automod feature to work.

Wordpress Plugin For Discord

Wordpress Discord

Zapier Plugin Wordpress

Make sure to join our support server for any questions or bugs regarding the bot.
Please note that this bot is still under development may have bugs.
Do ?help to see a list of commands that you can use.
Support me on Patron
Now hosted 24/7, updated regularly!

~By: ImmortalSnake