custom naming of search permalink /search/

The reason it isn’t working is because you haven’t told WordPress how to handle that page. You can do so by applying a rewrite rule in the following manner. add_action( ‘init’, ‘wpse_63716_search_rule’ ); function wpse_63716_search_rule(){ add_rewrite_rule(‘^suche/([^/]*)?’, ‘index.php?s=$matches[1]’, ‘top’); } Don’t forget to flush the permalinks after adding the above code.

How to change URL structure for pagination pages?

You may use the format argument of wp_link_pages function like this: <?php $args = array( ‘base’ => ‘%_%’, ‘format’ => ‘?page=%#%’, ‘total’ => 1, ‘current’ => 0, ‘show_all’ => False, ‘end_size’ => 1, ‘mid_size’ => 2, ‘prev_next’ => True, ‘prev_text’ => __(‘« Previous’), ‘next_text’ => __(‘Next »’), ‘type’ => ‘plain’, ‘add_args’ => False, ‘add_fragment’ => … Read more

Custom rewrite rules for feeds of custom queries (query_var query strings in URL)?

You can use add_rewrite_rule hooked to the init action, instead of using the generate_rewrite_rules filter (where it gets a bit low-level). But the actual problem with your rewrite rules is the regex in place. Here’s what it’d look like: function wtnerd_edition_specific_categories() { add_rewrite_rule( ‘(.+?)/channel/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$’, ‘index.php?category_name=$matches[1]&channel=$matches[2]&feed=$matches[3]’, ‘top’ ); add_rewrite_rule( ‘(.+?)/channel/(.+?)/(feed|rdf|rss|rss2|atom)/?$’, ‘index.php?category_name=$matches[1]&channel=$matches[2]&feed=$matches[3]’, ‘top’ ); add_rewrite_rule( ‘(.+?)/channel/(.+?)/page/?([0-9]{1,})/?$’, ‘index.php?category_name=$matches[1]&channel=$matches[2]&paged=$matches[3]’, … Read more

Arabic permalink not found

This issues is caused due to IIS does not recognize the multi language urls, You need to add the following code at the end of the wp-config.php file: if ( isset($_SERVER[‘UNENCODED_URL’]) ) { $_SERVER[‘REQUEST_URI’] = $_SERVER[‘UNENCODED_URL’];}

Change the custom post type permalink

You can use rewrite arg in register_post_type. You can have custom post type name different then rewrite slug. For example here is the sample code with custom post type project and it shows pages with http://shaowtriger.com/brands/naim/ Notice rewrite in $args add_action( ‘init’, ‘codex_brand_init’ ); function codex_brand_init() { $labels = array( ‘name’ => _x( ‘Brands’, ‘post … Read more

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