Arabic permalink not found

I am working on Arabic wordpress website and I have a problem when using arabic title for the post. the single post page always redirect to 404 page but with english permalinks it work perfectly when I tried to use the_permalink(); it returns: http://a3lamy.com/%d8%aa%d8%ac%d8%b1%d8%a8%d8%a9/ while in wordpress admin dashboard when edit post the permalink looks … Read more

WordPress not respecting template hierarchy (fetches index.php instead of single.php or page.php)

I’ve encountered a strange error while developing a custom theme. After finishing editing the template for a custom post type single view, I passed onto working at the template files for pages and I ealized that WordPress was actually pointing to index.php template file rather than page.php in my theme for generating the page appearance. … Read more

query_vars in plugin not working?

I have a problem writing a plugin for wordpress. First, I register a new query_var and add a new rewrite rule: function nng_users_query_vars( $vars ) { array_push( $vars, ‘nng_users’ ); return $vars; } add_filter(‘query_vars’, ‘nng_users_query_vars’); function nng_users_rewrite_rules( $rules ) { $newrules = array( ‘benutzer/([^/]+)/?$’ => ‘index.php?pagename=nng_users&nng_users=$matches[1]’ ); $finalrules = $newrules + $rules; return $finalrules; } … Read more

When is it a good idea to build a permalink structure from scratch?

Is it a good idea to design a permalink structure from scratch? The requirements to the structure are as follows: Pages to be referenced by their structure (example.com/grandparent-slug/parent-slug/child-slug). Posts to be referenced by category and date (example.com/category-slug/2013/07/my-post-slug). Archives only available by category (example.com/category-slug), by category and year (example.com/category-slug/2013) by category, year and month (example.com/category-slug/2013/07) and … Read more

custom taxonomies on permalink

is it possible to bring custom taxonomies to permalink? currently my permalink is looking something like this /%postname%/%category% but i also want to add custom taxonomies to my permalink so it should look something like this /%postname%/%category%/%location%/%mba_courses% is this possible? the solution to this answer i found, i googled and i found this code, which … Read more