Remove default RSS feed link and add custom feed

Question

I removed all default RSS links(<link> tags) from head, then I created new feed template. URL for new feed is like example.com/feed/newcustomfeed.

Now I want to add new <link> tag in the head section.

<link rel="alternate" type="application/rss+xml" title="My Site &raquo; My custom feed" href="https://example.com/feed/newcustomfeed">

Is there any function that puts link tag in the head section or do I have to add it manually using hook like wp_head?

0
, norixxx 4 years 2020-03-25T04:50:56-05:00 0 Answers 121 views 0

Leave an answer

Browse
Browse