Tag Info

New answers tagged

0

MY found SOLUTION WAS: global $wp_rewrite; $wp_rewrite->flush_rules(); $wp_rewrite->init();


0

If I understand correctly then you can hook into the rewrite api/process and flush or manipulate the rules that way? Read: Plugin Hooks on this page http://codex.wordpress.org/Function_Reference/WP_Rewrite Maybe something like: // flush_rules() if our rules are not yet included function my_flush_rules() { $rules = get_option( 'rewrite_rules' ); ...


0

Please Note: Questions regarding 3rd-party plugins and themes are considered off-topic here at the WordPress Development SE. The best place to receive support for such items is the 3rd-party's official support channels. Please review the How to Ask section of our Help Center to learn more about what questions are on-topic and a good fit. ...


0

Alright, here to help :) If you find this helpful please share the bounty! Step 1: The Research My first hint was that these parts of the slugs are usually controlled by custom post type settings, thus I combed through the plugin files - finally finding that in the plugins in the file "class-wp-job-manager-post-types.php" inside the "Includes" folder on ...


2

If you check out the output() method in the includes/admin/class-wp-job-manager-setup.php file, namely this part: /** * Output addons page */ public function output() { $step = ! empty( $_GET['step'] ) ? absint( $_GET['step'] ) : 1; if ( 3 === $step && ! empty( $_POST ) ) { $create_pages = isset( ...


0

Ok, that is complicated :-) Have you considered using rewrite endpoints? I would not try and cram everything into the url unless you have a specific need or a requirement for that. domain/<series>/<episode-name> would be going directly to the episode CPT domain/cartoon-series/<series> - would go the the series CPT Then using rewrite ...


0

"movie-special-features" is longer than 20 chars. If you enable debug, you will get a message, these names are not allowed longer than 20 cars. Reference: https://codex.wordpress.org/Function_Reference/register_post_type You can enable the debug mode in you wp-config.php with define( 'WP_DEBUG', true ); Reference: https://codex.wordpress.org/WP_DEBUG


1

Use this plugin in wordpress and write rule which will overwrite nginx rule. https://wordpress.org/plugins/rewrite/ When you have wordpress, you have to set permalink to default to work your webserver rule work and if you dont want to do that you have to install above plugin and write rule.



Top 50 recent answers are included