New answers tagged permalinks
0
votes
Accepted
How to allow slash(/) on page url
You can set the slug to submission then create a parent page named journal
1
vote
flush_rewrite_rules() not working with update_option_{$option}
flush_rewrite_rules() should be called very early within the Wordpress initialization. The reason is that the entpoints cannot be changed afterwards.
A solution could look like this:
function ...
1
vote
Accepted
Change product_base programmatically
Use your plugin activation hook to make the change. That will only run once, when your plugin is first activated, allowing the user to overwrite that change later (if they want to).
...
0
votes
Change permalinks for posts & for custom post types
with_front=false is the key, but WordPress also seems to like to hard-cache the settings you originally register a CPT with. Try unregister_post_type() above the CPT registration so it's completely ...
Top 50 recent answers are included
Related Tags
permalinks × 3087custom-post-types × 636
url-rewriting × 470
custom-taxonomy × 278
rewrite-rules × 259
urls × 218
categories × 211
posts × 188
slug × 185
htaccess × 177
404-error × 173
redirect × 151
pages × 129
plugins × 113
php × 110
customization × 93
plugin-development × 78
links × 78
taxonomy × 59
pagination × 59
archives × 57
multisite × 53
functions × 51
templates × 50
theme-development × 44