How to replace permalinks

It sounds like you have not properly updated the “WordPress Address” and “Site Address” at wp-admin -> Settings -> General, or you have defined WP_SITEURL and WP_HOME in wp-config.php and did not adjust the value when the site was moved. I can’t comment on whether the .htaccess file is correct, though I can say that … Read more

Changing permalink settings causes 404

There are several possibilities: you may need to enable mod_rewrite on the Ubuntu server or check/fix permissions to allow WordPress to write to the .htaccess file. Best thing to do is read http://codex.wordpress.org/Using_Permalinks and work through suggestions.

WordPress Permalink

This might help you: Go to your Settings => Permalinks => Cutom Structure And paste this: /category/%category%/article/%postname%/ Also paste this on Category Base field: category This will work for category but when you visit any post you will be welcomed with 404 page not found (Isn’t it nice?). So stealing from this answer Add this … Read more

How to get raw unwritten querystring

$_GET refers literally to ?p=1 part of URL. With pretty permalink if it’s empty then there is nothing to access. WordPress processed either case into query variables of WP_Query class. You should use get_query_var() to retrieve things like this, so in this specific case it would probably be get_query_var( ‘p’ ).

Two custom taxonomies in permalink structure

First issue- the permalink structure in Settings is only for the post post type, so your post_type_link function has no %types% tag to replace. Second- unless you want a very complicated (and less performant) solution, the simpler solution is to have a static prefix in your post type slug. With the URL http://domain.com/type/location/post-name/, WordPress has … Read more

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