How to add LINK tag to HEAD?
-
Hi! Please, help me. How can I add tag LINK to head for my page https://my-site.com/feed/podcast/ . It needs for Google Podcasts, they tell me that I paste LINK tag to head.
I have Custom Podcast Channel with name slug – podcast
I tried this(but this not helped me):
function custom_powerpress_feed_head() { if ( is_feed('podcast') ) { echo '<link rel="alternate" type="application/rss+xml" title="Your Podcast Feed" />'; } } add_action('wp_head', 'custom_powerpress_feed_head');
How can I do it?
Please, help me! Thanks.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to add LINK tag to HEAD?’ is closed to new replies.