Replace the attribute_escape to esc_attr()

Deprecation is… status applied to features, characteristics, or practices to indicate that they should be avoided, typically because they have been superseded. In other words, attribute_escape has been replaced by esc_attr. Any time you use a deprecated function WordPress triggers the error you’re seeing. Somewhere in your codebase a deprecated function is being used. To … Read more

How can i put image to come first than the title?

You can’t use the post content to add an image outside of the call to the_content(). If you want to look into implementing Post Thumbnails (i.e. Featured Images) into your Theme. Full implementation is outside the scope of a simple question-and-answer; however, in the end, your markup will change from this: <h1 class=”title”><a href=”https://wordpress.stackexchange.com/questions/87953/<?php the_permalink() … Read more

Help post permalink

The post slug is generated in the wp_insert_post (…/wp-includes/post.php) function. The function calls another function to sanitize the your post title. You can use the filter sanitize_title (…/wp-includes/formatting.php) to replace – by +. This will change the behavior in more situations then just the title of a post. So you should check if it is … Read more

Tumblr importer

Not really, no. The importer is an automated tool that grabs content already published in one place and republishes it in another. If you were importing from WordPress to WordPress, then publication status would be imported as well. However, the Tumblr importer uses the Tumblr API to grab everything on your account. If the post … Read more

Single.php loses it’s formatting

Ok, try this (untested, so excuse any minor typos/syntax errors). I have amended so that The Loop first checks that there is Posts to show. I’ve also removed the need for $count and the addition of ‘ ‘ by adding any matches to an array, and then outputting them using join(). Hopefully I’ve not gone … Read more

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