New answers tagged

0 votes
Accepted

How to allow slash(/) on page url

You can set the slug to submission then create a parent page named journal
user avatar
  • 52.4k
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 ...
user avatar
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). ...
user avatar
  • 35.5k
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 ...
user avatar
  • 8,683

Top 50 recent answers are included