Using a template file for a specific custom URL

I don’t know what nepal is (text prefix only or maybe taxonomy term), but it is not the most important thing, you will correct it if necessary. Rewrite rule like this should resolve the case. add_action( ‘init’, ‘se356109_events_custom_rule’ ); function se356109_events_custom_rule() { add_rewrite_rule( ‘nepal/events/(.+?)/([0-9\-]+)(:?/page/?([0-9]+))?/?$’, ‘index.php?events=$matches[1]&paged=$matches[3]’, ‘top’ ); } If you need to use URL date … Read more

Change permalink structure in all sites of a multisite

You would probably need to do this programmatically, for example add a PHP file to your /wp-content/mu-plugins/ folder with this: <?php add_action(‘init’, ‘modify_all_permalink_structures’); function modify_all_permalink_structures(); if (isset($_GET[‘modify_all_permalinks’)) { $structure=”/%category%/%postname%/”; $sites = get_sites(); foreach ( $sites as $site ) { switch_to_blog( $site->blog_id ); global $wp_rewrite; $wp_rewrite->set_permalink_structure($structure); $wp_rewrite->flush_rules(); } restore_current_blog(); } } Then access yoursite.com/?modify_all_permalinks to trigger … Read more

iFrame permalinks on WordPress

What you want is not possible. The iframe on your page is generated by a script from WebLink that requires the ?symbol= parameter in the URL to be able to generate the correct iframe. If you rewrote the URL the way you want the script would not work, since the symbol parameter doesn’t exist anymore. … Read more

Permalink not changing according to post type

Permalink structure for blog posts and pages are managed in WordPress Settings -> Permalinks page, so to make blog posts have permalinks like blog/%postname%/ and you’ve done it right. The tricky part is about Custom Post type permalinks declaration: in your CPT arguments declaration there’s a rewrite rule parameters, which in turn has with_front – … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)