DEV Community

Gareth Gillman
Gareth Gillman

Posted on

2 2

Simple WordPress Widget for your Dev.to Posts

I was bored and saw some posts of the users making use of the dev.to api so I threw together my own little project, a widget for your posts.

It shows the latest 30 posts by using the following API call: https://dev.to/api/articles?username=ben

A view of the widget admin, super simple: https://imgur.com/a/r3bg67G

Live view (showing Ben Halpen's posts) - The widget comes with no styling so uses the default styling from your theme.

http:// wpthemes4u. co. uk/plugins/ (remove spaces)

You can download the widget from https://www.dropbox.com/s/ohkdmbk9arrzxoe/devto-widget.zip?dl=0, I will get it on Github when I get chance.

The API has a lot of data I can use to make the widget more interesting, what would you like to see? things I have considered are:

  • user card (with profile image, name, description & twitter url)
  • limit posts to a user defined number in the widget settings

Let me know any ideas to improve the widget or other ideas for WordPress integrations for Dev.to

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay