Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A simple WordPress RSS subscribe shortcode
// 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="" 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