Load the jQuery in the wordpress footer

wordpress-footer-jquery

Many latest framework are loading all javascript in footer. They reduse the page loading the errors. But wordpress load the jquery and other javascript in header.
But using following code you can load your javascripts and jquery in footer area. You just need to copy and paste the following code into the functions.php file. Continue reading

How to count post views without wordpress plugin

There are many wordpress plugin which will give you the post views using custom tables. But here using following code you can track the post views of your wp site.

Using external plugin, you can get the views and report but it will add more sql quries and extra load to your site. So I suggest use following code for getting the post views. Continue reading

Remove short words from the wordpress permalink URL

Wordpress itself creates the permalink. Wordpress permalinks are very important for SEO purpose. Short words are sometimes are not good for seo so you might need to remove the short words from permalink. Using the following code you can remove the short words from wordpress permalink URL. Continue reading

Share social media Bookmark Icons in WordPress theme without plugins or Javascript

Share social media Bookmark Icons in WordPress theme without plugins-Javascript

I used many types for social bookmark plugins for sharing the content. I tried a some best services like those provided by AddThis and ShareThis. All the scripts and social media bookmarks are adding the some extra javascript code to website. Some social media buttons will add the swf/ flash code to website which to too heavy. So Adding the multiple javascript files for each social media bookmark is not a good solution. Continue reading

Delete users by date wordpress Mysql

Delete users by date wordpress Mysql

Some days before I enabled the my site registration as subscribers. In last seven days there are four thousand subscribers has been registered on my site. After reviewing the users and there server request logs I got to know about that was spam users which was registered to my site. Wordpress is always easy target for spammers and hackers. I tried to use some code for remove the wordpress users but then later I used following Mysql commands for removing he wordpress users. Continue reading

Remove category slug wordpress from URL

Remove category slug wordpress from URL

Wp Developers are always looking for remove the category or blog slug from wordpress URL. We can very easily remove the blog word from wordpress blog URL. Many clients want to remove the category word from URL. There are some nice wordpress plugins which will help you to remove the category word from wordpress URL. Continue reading

Block Proxy Servers to Access the WordPress Site

Block Proxy Servers to Access the Wordpress Site

Wordpress is always very target for hackers. Hackers always use the proxy servers to access the wordpress websites. Hackers attack the wordpress sites using the proxy IP addresses and servers. Here Using small trick you can prevent the proxy server attack. This is very easy trick which can be used in every wordpress project. All proxy visits are not bad requests so First check the site access logs. If you are thinking Your site attacked by Hackers and proxy servers then only use the following code. Continue reading

wordpress change permalink day and name to post name without losing traffic

wordpress change permalink day and name to post name without losing traffic

Earlier I used date and name permalink structure for my blogs. Recently I got information about SEO URL tricks and I made decign to change permalink structure to Post name.
But with this produced many issues. Like google search result will go to old site URLs and My blog links are posted on other multiple blogs. That links will be broken and redirect to 404. Also I interlinked my other posts with other posts. They will go to 404 page.

If your blog pages will not found then google site ranking will go down.

Continue reading

how to change the author url in wordpress without wordpress plugin

how to change the author url in wordpress without wordpress plugin

There is default username in wordpress. admin is default username in wordpress but many times user want to use other wordpress user url for admin user. You can easily do this by using following wordpress hook.
I given the simple code for insert into functions.php file. Continue reading

Spam the comments If comment Author URL is bigger in WordPress

Spam the comments If comment Author URL is bigger in Wordpress

Spam comments are most irritating for bloggers. Reading the all comments and there content and deside. If Comment author URL is bigger then you should consider that comment as Spam comment for sure. Many times I observed, spammer always try to add there site URL in Author URL.

Using following code you can protect your site from spam commenters. Open your functions.php file from your theme folder and just copy/paste the following code into that. Continue reading