WordPress4.1.15 Dashboard links not working

It could be that your upgrade hasn’t worked properly. Does it still think you have an upgrade to 4.7.2 waiting? Personally I would download a fresh copy of 4.7.2 and re-upload this to be sure nothing is broken or missing. Make sure to take a backup of your database and files should anything bad happen. … Read more

Link to another website with the same url path

This can be achieved using WordPress Multisite Network. See this tutorial for same: http://www.wpbeginner.com/wp-tutorials/how-to-install-and-setup-wordpress-multisite-network/ Also, if you don’t want multisite, for some reason, you can create a sub-folder in WordPress root of existing and install a separate WordPress in it.

Disable links to images only if link is an image

I am not a professional when it comes to regular expressions but this should be able to catch all linked images which the href attribute links to an image file ((png|jpg|gif|jpeg|bmp) feel free to add/remove extensions): add_filter(‘the_content’, function($c){ return preg_replace_callback(“#<\s*?a\b[^>]*>(.*?)</a\b[^>]*>#s”, function($m){ $tpl = $m[0]; $cnt = isset($m[1]) ? $m[1] : null; if ( preg_match(‘/<a(.*?)?href=[\'”]?.+\.(png|jpg|gif|jpeg|bmp)[\'”]?(.*?)?><\/a>/i’, str_replace($cnt, … Read more

Wrapping shortcode content in a span or link

Get out of the switch block before placing the final return statement. if you place return at the end of the switch block that way, the switch block already ends before it gets to the return statement (because of the previous matching break statements). The correct CODE will be: // just in case $summary is … Read more

Add pagination to search.php page

Sometimes pagination will break and give unexpected results, redirect you to the wrong page or give you a 404 (page not found) on the “paged” pages. This is usually due to your theme altering (querying) the main loop wrong. Try updating your .htaccess file by updating the permalink.

Server peek by Own-IP-Calls?

Absolute URLs are not the reason for your problems. Relative and absolute links stress servers the same way. There can be a problem if you load all your content at once (e.g. hundred of images). You can solve this issue with AJAX (loading content on demand).

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