Home / loop / Submit to Reddit
  • How to Submit to Reddit


    Adding this PHP code to the loop of your wordpress theme will allow users to submit your post to reddit.

    ( click code to copy )

    wordpress snippet : PHP

    <a href="http://www.reddit.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>" rel="nofollow" title="submit to reddit" target="_blank">Submit to Reddit</a>

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

    the_title, the_permalink,