• Resolved ritushrivatri

    (@ritushrivatri)


    Hi team,

    I have created custome page for web story category using add_rewrite_rule, after that my web story is not working, i flused permalink settings in wordpress but its not working.

    Page Url:- https://localhost:8888/learn/web-stories/insurance/

    Stories of insurance is coming on this page but on click of story its showing 404 page.

    Also if i comment add_rewrite_rule, it started working.

    Here is my rule:-

    add_rewrite_rule(‘web-stories/([^/])/page/([0-9]+)?$’, ‘index.php?web_story_category=$matches[1]&pagenum=$matches[2]’, ‘top’); add_rewrite_rule(‘web-stories/([^/])’, ‘index.php?web_story_category=$matches[1]’, ‘top’);

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    Hi there, thanks for reaching out!

    To be honest, this goes a bit beyond the scope of our support offering for the plugin. We can’t really assist with custom development like this. The question would be more suitable for the general support forums or StackOverflow.

    That said, these rewrite rules certainly don’t look correct for what you’re trying to do. They would just make /web-stories/<categoryname>/ work, which does not match your example.

    I suggest using a plugin like Rewrite Rules Inspector to make debugging custom rewrite rules easier.

    Thread Starter ritushrivatri

    (@ritushrivatri)

    Thanks for the quick response, my web story category page is working showing all post of the category but only problem is on click of story its showing 404, it ok if you dnt want to reply

    Plugin Author Pascal Birchler

    (@swissspidy)

    I see, thanks for clarifying. In that case, there might be a conflict between your custom rewrite rules and the built-in ones added by WordPress. The plugin I mentioned should be able to figure that out.

    The Web Stories plugin itself doesn’t add any custom rewrite rules on its own, so it’s most likely a configuration issue like this.

    We are going to mark your topic as resolved as we haven’t received a response. Please feel free to open a new support topic if you experience any other issues. Thank you.

    Thread Starter ritushrivatri

    (@ritushrivatri)

    Yes there is a conflict between your custom rewrite rules and the built-in ones added by WordPress, now its resolved thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Google Web story category page’ is closed to new replies.