This code fixes the problem:
function gender_endpoints() {
add_rewrite_endpoint('female', EP_PAGES);
add_rewrite_endpoint('male', EP_PAGES);
}
add_action('init', 'gender_endpoints');
Related Posts:
- Redirect old permalinks with Month and name to Post name on new site
- Custom Permalink
- Changing the post date without causing 404 error
- Resolve 404 on posts without category
- How does WordPress handle permalinks?
- Setting 404 page in Nginx
- How can I force WordPress to redirect to canonical permalinks?
- Passing variables through permalink structure
- + Character in permalink
- Permalink redirection from ‘Day and name’ to ‘Post name’
- Nicest way to 301 Redirect traffic when changing permalink settings
- 404 on category.php pagination
- Changing pemalink structure to /%post_id%/%postname%/
- htaccess or redirect to cloak portion of a link?
- Redirect short-form URL to long-form URL (post_id to post_id + post_name)
- Posts not working on windows after changing permalinks
- Stop redirecting to posts not in a category / duplicate slugs
- .htaccess – Redirect duplicated post ended in ‘-number/’ to the same url without the -number/
- Top level Pages redirecting to homepage!
- Permalinks broken regularly
- 404 Page Not Found for Only One Post
- How to 301 all posts
- Permalink /%category%/%postname%/ returns 404 on OSX
- WordPress within specific sub-directories, implicitly not root
- Permalinks keep reverting to 404 unless I re-save them
- Get canonical link
- Problems redirecting to “pretty” permalinks (wordpress in Subdirectory)
- Permalink change made author archive vanished
- If I change permalink structures, can I use htaccess to permanantly redirect links?
- Redirect parent taxonomy to it’s child
- WordPress 404 in development area
- Does rename of page slugs create 301 redirects from old slug to new (same as for posts)?
- Nginx Rewrite Rule:: index.html added to every permalink
- Moving local wordpress page to a real server subdomain broke my permalinks?
- Change permalinks on move from one site to another
- Redirects after permalink change
- Page preview is shown, updating page gives 404 error
- How to 301 redirect from one url to another properly
- Redirect a Blogger Page URL to wordpress
- Edit page slug after save, cause 404 by linked pages
- Correct permalinks and 404-error
- What would cause a theme to add extra characters to blog post links?
- Permalink Doesnt Work – URL Not Found
- Getting 404 when Access post which name start with Digit
- WordPress 4.4 old permalink redirect
- 404 when going to /blog
- Permalinks 404 error with HTTPS host
- Htaccess https 301 problem
- Passing the JQuery string to Worldpress URL
- Freeze child page URLs so parent permalink changes don’t give 404s?
- How can I make internal anchor links work with WordPress’s permalinks?
- What causes /pages/ to appear in URI, and how to remove it?
- Permalinks on post is working, on pages 404 error
- Some Pemalink problems, probably caused by wrong .htaccess configuration?
- Strange behavior with a redirect loop – involves WPML multi-language plugin
- 404 permalink errors on Pages only
- Redirect From Url To Url
- I’ve removed my /author/ slug but it clashes with new and existing pages. Any fixes?
- After cloning WP do a subdirectory, I can’t access it
- change WordPress permalinks and redirect new urls 301
- Arabic permalink redirect to home page
- Configuring Home Page Address
- Why does enabling Permalinks make pages not found?
- WordPress Permalinks 404 bug with “next” button
- Changing permalink settings causes 404
- Main blog page works but title says Page not found
- permalink and add_rewrite_rule – error 404
- WordPress permalink change causes all incoming links to give 404 errors
- using wp_redirect to redirect to a permalink
- old permalinks not found
- WP-e-commerce (getshopped) – Annoying permalink issue [closed]
- Change url of page according to my requirements in wordpress
- How to redirect old permalinks from https://exmaple.com/category/post_id to https://exmaple.com/category/post_id.html
- corrupted URLs – can’t leave starting page
- Xampp 7.3.3 fresh install of WordPress 404 pages unless permalink is set to plain
- MySQL-inserted custom taxonomy term lead to 404, flush rewrites doesn’t help
- WordPress /page/2 gives 404 when custom permalinks is set to %category%%postname%
- Redirect old /%category%/%postname%/ to just /%postname%/
- 301 redirects after changing permalinks
- 404 on pretty permalinks when serving via HTTPS
- 404 error on published page with specific permalink
- Permalink issue with WordPress Site at domain root and another WordPress Site in a Subfolder
- 404 page not found – Yet open admin page it works
- How to experiment with permalink structure on a select number of posts
- Custom permalink gives 404 error only in some pages
- Remove Permalink of certain posts
- redirect any category in URL to the ID and post-name only – hundreds of pages affected
- Problem with permalinks
- Post redirected to page with same name but DIFFERENT permalink
- Changed Permalinks settings, how do I redirect posts on Nginx?
- Post permalinks go to the home page
- LetsEncrypt WordPress on the Raspberry Pi – Nice url’s give 404 with https, http works
- Can’t access WordPress site in subfolder possibly because of .htaccess redirect from root installation?
- changing permalink gives 404 error for old links
- Change the permalinks structure
- Folder Name and Category Name WordPress
- 404 error on second page load for child-pages
- redirect old pages by .htaccess
- Redirecting From An Old Permalink Structure
- WordPress 3.1 problem, getting 404