Change admin logout URL

The quickest way to do this is through an Apache rewrite via mod_rewrite. You’ll also have to tell WordPress where to points its login links using the login_url and logout_url filters. return apply_filters(‘login_url’, $login_url, $redirect); return apply_filters(‘logout_url’, $logout_url, $redirect);

Convert link in WordPress 3.2.1

Go to Settings->Permalinks, select Custom Structure, and set the text box to just /%postname%/ You might consider the second bullet point in the docs recommending against this particular URL pattern, though. This was addressed in 3.3

Link all WordPress images size

You can do this by adding this function to your funcitons.php file. function my_get_image_size_links() { /* If not viewing an image attachment page, return. */ if ( !wp_attachment_is_image( get_the_ID() ) ) return; /* Set up an empty array for the links. */ $links = array(); /* Get the intermediate image sizes and add the full … Read more

URL parsing – what is it?

Parsing means to analyze (a string or text) into logical syntactic components. Taking WordPress URLs into the question is something like this: // Get array of URL ‘scheme’, ‘host’, and ‘path’. $url_parse = wp_parse_url( ‘https://developer.wordpress.org/reference/functions/wp_parse_url/’ ); // Output URL’s path. echo $url_parse[‘path’]; /* Array ( [scheme] => https [host] => developer.wordpress.org [path] => /reference/functions/wp_parse_url/ ) … Read more

Why ids in urls don’t work but slugs do?

Because the tag query variable expects the value to the terms slug. It’ll be looking for the term with slug ’15’ (which presumably doesn’t exist). And, yes its quite frustrating that wp_dropdown_categories() uses the ID as the value, rather than the slug. This is because it was originally used only for categories (for which IDs … Read more

open all .docs in word online

I’m not sure this question is WordPress-related. It sounds like it might be handled via .htaccess redirect, or a browser extension. That said: you could try to use the wp_get_attachment_url filter, that is applied to the URL returned by wp_get_attachment_url(). For example: function wpse95271_filter_wp_get_attachment_url( $url ) { if ( 0 === stripos( strrev( $url ), … Read more

home_url(); showing current page instead of site address

Since you didn’t post actual code in your question, I can only speculate. However, a common problem is that, when calling home_url(), it is not echoed. The value of the function is returned, rather than echoed, so it must be explicitly echoed by the code. I’m guessing you have something like this: <a href=”https://wordpress.stackexchange.com/questions/95730/<?php home_url(); … Read more

How to change image url?

Go into your WordPress Dashboard > Settings > Media and then untick the option that says Organize my folders into Month and Year based folders This will make it look like: http://example.com/wp-content/uploads/imagename.jpg Then to take it further you need to update you config.php file and add in either this line: define( ‘UPLOADS’, ‘image/’.’files’ ); This … Read more