WordPress.org

Ready to get started?Download WordPress

Forums

Feed URL overwrites page URL (2 posts)

  1. Paul
    Member
    Posted 1 year ago #

    I've created a custom feed using add_feed() which I assumed would only be available using the feed_base (defined in the WP_Rewrite class) in the URL but it doesn't.

    For instance when creating a feed named 'news' it can be accessed using /feed/news but also just using /news, which would make a page named 'news' using the same path inaccessible.

    Is there a way to force the feed to use the feed_base setting to prevent this?

  2. Peter_L
    Member
    Posted 1 year ago #

    Not sure but try naming page the-news?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags