How can I use a separate domain for URL shortening?
Try Yourls. I hadn’t used it myself but feedback I seen is very positive and it is project by very known developers (Lester Chan and Ozh).
Try Yourls. I hadn’t used it myself but feedback I seen is very positive and it is project by very known developers (Lester Chan and Ozh).
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);
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
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
Download and install “Velvet Blues Update URLs”. Add your old url in the “Old URL” field, the new one in the “New URL” field, check all the checkboxes and click “Update URLs”. Update your permalinks afterwards
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
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
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
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
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