Home / social / Reddit submission upvote
  • How to Reddit submission upvote

    reddit-submission-upvote

    Adding one of these Javascript buttons to your single.php will display a submit and article up-vote option for your posts. Reddit has 3 button types available,

    ( click code to copy )

    wordpress snippet : JAVASCRIPT - Button style 1

    <>
    <script type='text/javascript'>reddit_url='[URL]'</script><script type='text/javascript'>reddit_title='[TITLE]'</script><script type="text/javascript" src="http://www.reddit.com/button.js?t=1"></script>
    
    ( click code to copy )

    wordpress snippet : JAVASCRIPT - Button style 2

    <>
    <script type='text/javascript'>reddit_url='[URL]'</script><script type='text/javascript'>reddit_title='[TITLE]'</script><script type="text/javascript" src="http://www.reddit.com/button.js?t=2"></script>
    
    ( click code to copy )

    wordpress snippet : JAVASCRIPT - Button style 3

    <>
    <script type='text/javascript'>reddit_url='[URL]'</script><script type='text/javascript'>reddit_title='[TITLE]'</script><script type="text/javascript" src="http://www.reddit.com/button.js?t=3"></script>
    

    ( WordPress codex functions, hooks, in this snippet. )