Remove international characters from slug – Almost done – Bit help

Following on from my comment on your question. The solution would be to hook your own filter onto the same functions sanitize_title_with_dashes does, in this case i think you’re just aiming to hook onto sanitize_title as is done with sanitize_title_with_dashes. Simply ensure you hook on after sanitize_title_with_dashes, which is hooked on at the default priority … Read more

Separate URL for a specific page

Uhm, nice question. Some hacking is required. Use pretty-permalinks on company site On the domain of the founder, do a URL-rewrite from http://www.founder-domain1.com to http://www.companysite.com/page-founder1 On the company site, use a custom menu with a custom URL: Founder Page -> http://www.founder-domain1.com. (If you cannot use a custom menu, create a link in your template) Of … Read more

How to set path to the image instead of alt in media.php?

This should do the trick add_filter(‘wp_get_attachment_image_attributes’, ‘change_alt_image’, 10, 2); function change_alt_image($attr, $attachment) { $data_img = wp_get_attachment_image_src($attachment->ID, ‘original’, false); $attr[‘alt’] = esc_url($data_img[0]); return $attr; }

How to deal with a GET variable of ‘name’?

In case it’s useful for someone else in this situation, I ended up creating a page outside WordPress which renames the ‘name’ parameter (to ‘username’) and then redirects to the page I originally wanted to hit. My code for this external page is: <?php $data = array(‘UID’ => $_GET[‘UID’], ‘username’ => $_GET[‘name’], ‘ANI’ => $_GET[‘ANI’], … Read more

Enhancin 404 to contain a search from URL

WordPress doesn’t deeplink to any php file for the front end. Instead, everything is passed throug the url as a query, like so http://your-blog-url.com?p=123. If you wanted to change that behaviour, you could edit your permalink structure in multiple ways. Just go to settings->permalinks (i have no idea what that is in czech, but its … Read more

Need help changing back the correct wordpress url

Did you follow the steps outlined here: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory Specifically did you copy the .htaccess and index.php files back to the root and edit the index.php file with correct filepaths as stated in points 7 – 9? Update The problem was solved by modifying these two options in the wp_options table: siteurl home (See comments)

Modifying WP URL handing code?

I ended up solving this with a little bit of code (in the form of a plugin): if(isset($_GET[‘state’]) OR isset($_GET[‘city’])) { $url = explode(“https://wordpress.stackexchange.com/”, $_SERVER[‘REQUEST_URI’]); $url = end($url); $_SERVER[‘REQUEST_URI’] = “https://wordpress.stackexchange.com/” . $url; } This code in essence removes the “/arizona/” or “/arizona/phoenix/” from the REQUEST_URI global variable and replaces it with “https://wordpress.stackexchange.com/”, which then … Read more