title tag function

function title_tag () { // 0. uppercase string $str = strtoupper ( $_SERVER[‘REQUEST_URI’] ); // 1. remove trailing and init slash $str = trim ( $str , “https://wordpress.stackexchange.com/” ); // 2. add search and replace chars; // two array, with same element size, // 1. element of search array will be replaced // with the … Read more

WordPress blog clone.. wp-admin issue

Here’s 1 way to fix this. Add below inside Site2 wp-config.php: define(‘WP_SITEURL’, ‘http://Site2’); define(‘WP_HOME’, ‘http://Site2’); Once logged in, go to Settings > General and change WordPress address (URL), Site address (URL) to Site2. Then delete those 2 lines that you add inside wp-config.php.

WordPress permalink issue

I think the problem comes from the rewrite rules that had been saved when you developed the site locally. To fix it, you should go to Settings -> Permalinks and set the permalink structure again. Note that, you may just click on the save button, that will flush the rewrite rules for you.

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; }

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