Editing the variables in a custom URL

IMHO easiest way to do the trick is use a simple rewrite rule, and demand the logic to the page, e.g. function my_custom_url() { add_rewrite_rule(‘story/([^/]+)/?’,’index.php?pagename=story&user=$matches[1]’,’top’); } add_action( ‘init’, ‘my_custom_url’ ); After that in page where you need the user id use: $userqv = get_query_var(‘user’); $user = is_numerical( $userqv ) ? $userqv : get_user_id( $userqv ); … Read more

Using a taxonomy value as part of a post URL

Add or replace this to your register_taxonomy (in functions.php): ‘query_var’ => ‘city’, ‘rewrite’ => true Then append this to your functions.php add_filter(‘post_link’, ‘city_permalink’, 10, 3); add_filter(‘post_type_link’, ‘city_permalink’, 10, 3); function city_permalink($permalink, $post_id, $leavename) { if (strpos($permalink, ‘%city%’) === FALSE) return $permalink; // Get post $post = get_post($post_id); if (!$post) return $permalink; // Get taxonomy terms … Read more

Redirect Pretty Permalinks to Ugly Permalinks

You can do this in the WordPress Admin panel. Navigate to Settings > Permalinks and choose “Default.” This will reset your link structure to default. After saving, you should clear your cache and it should work. However, this will not change your html pages or any other links that is hard coded into the template … Read more

using post meta data as permalink tags [duplicate]

Sounds like you should take it from another angle and use Custom Post Types and Custom Taxonomies. See http://codex.wordpress.org/Post_Types and http://codex.wordpress.org/Taxonomies That will give you the permalink structure you want, and also provide a way to organize and enter the data from the admin side.

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