add_rewrite_rule not registering on Multisite
I have a multisite install of WordPress. I have installed the plugin Monkeyman Rewrite Analyzer so I can see all the rules I have registered. The code below is how I am registering the rule:
I have a multisite install of WordPress. I have installed the plugin Monkeyman Rewrite Analyzer so I can see all the rules I have registered. The code below is how I am registering the rule:
Facing issue with nginx url rewrite rules. What I want is to serve http://example.com/2015/03/23/post-title/ page when someone tries to access http://example.com/2015/03/23/myfeed/post-title/ url. And it should return 200 status. I tried below rewrite rule which works fine when wordpress permalink is set to default but as soon as I set permalink to custom below rules does not works.
I need to add some rewrite rules for my site.
I need to link this friendly URL:
I have two custom post types: let’s call them location
and topic
. The location custom post type is hierarchical. All articles are ‘attached’ to a single location using post meta. If it matters, the topic
post type has a custom meta box that contains a dropdown of the locations
that saves using:
I am trying to create a multilanguage website. And I have set my home page to a static page in my WP admin area.
I want to add ‘rewrite condition’ in .htcaccess but unfortunately I don’t have access of that.
Can I write conditions in functions.php ? If yes, how to achieve that ?
I want to add these lines:
I am developing a plugin, and am using add_rewrite_rule followed by flush_rewrite_rules during plugin activation.
On a site where I filter custom taxonomy terms with FacetWP I’m trying to have the taxonomy term links go back to the homepage with the filters, instead of linking to the taxonomy term archives.
How can I add pages under the URL structure of a Custom Post Type?
I created a custom page template movie-page.php
and a page movie
in WP. The template shows fine when I visit site.com/movie/