Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A simple WordPress RSS subscribe shortcode http://colorlib.com/wp/shortcodes-can-add-life-wordpress-themes/
<?php
// Shortcode to display a subscription message on your website
function subscribe_link_shortcode() {
return 'Did you like what you read? Now, let all these posts be delivered right into your inbox. Simply <a href="http://feeds.feedburner.com/Myblog" title="Subscribe to the Site">subscribe to My Blog Posts via RSS</a>.';
}
add_shortcode('subscribe', 'subscribe_link_shortcode');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment