Have you ever come across a website that has a small Reddit button that allows you to up vote or down vote a URL on the spot? If you’re a regular Redditor, this may come in handy.
Perhaps you’ve been wondering how to add this button to your site. It’s actually extremely easy (comparatively speaking). All you have to do is add the code shown below to your page or page template if you are using WordPress.
That’s it! Simple, right? The Reddit script takes care of everything. It ties the URL that the vote came from and adds it to its database. Votes made on the page and on Reddit are tallied up and displayed in the button every time the page is loaded.