Change path/url of admin-bar.min.css

admin-bar.min.css is not registered via the normal wp_register_style channels. It, and the other default styles, are registered by wp_default_styles, which registers them by directly manipulation the $styles object, though I don’t know what good that is since there are no hooks and you shouldn’t be hacking core files. You should still be able to deregister … Read more

Making a site URL

In order for the site to be publicly accessible you need to host the site on a server that is publicly accessible. Your local MAMP server is almost certainly not public. There are hacks and workarounds that would let you host the site from there, but don’t. Lease a server and install your site there. … Read more

How to create custom authors links

You can use author_link filter to change the author’s link add_filter( ‘author_link’, ‘wpse110967_author_link’, 10,2 ); function wpse110967_author_link( $link, $user_id ){ //Retrieve authors url from user meta $_link = esc_url( get_user_meta( $user_id, ‘wpse110967_author_link’, true ) ); if( $_link ) $link = $_link; return $link; } In the above example its assumed that you’ve stored the author-specified … Read more

bloginfo no show the right path

the codex says get_stylesheet_directory_uri(); returns a properly-formed URI; in other words, it will be a web-address (starting with http:// or https:// for SSL). As such. i don’t understand why it’s not working for you, try to use get_template_directory_uri(); in the event a child theme is being used, the parent theme directory URI will be returned, … Read more

How to eliminate the Web Address / Web Link textbox from comment forms

You made a mistake when put your functions.php file into mu-plugins directory. Why? Because your file rendered above is not a plugin, it is just a script. WordPress looks for a plugin inside mu-plugins directory. So you have to do one of two things: Add plugin header into functions.php file Move functions.php file into your … Read more

How to redirect WP post with a specific word in the URL

Try using wp_rewrite: add_action(‘init’, ‘flush_rewrite_rules’); function custom_add_rewrite_rules( $wp_rewrite ) { $new_rules = array( ‘archive/(\d+)’ => ‘/?p=’ . $wp_rewrite->preg_index(1) ); $wp_rewrite->rules = $new_rules + $wp_rewrite->rules; } add_action(‘generate_rewrite_rules’, ‘custom_add_rewrite_rules’); Use the plugin activation hook for the flush_rewrite_rules, because you only want this to happen all the time while developing. In production this should only happen when activating … Read more

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