[How to] Use WordPress RSS Widget in PHP Templates

I showed you how to use widgets using the_widget in your php templates before. Upon request, I am going to show you how to use WordPress RSS Widget with the help of WordPress the_widget function.
Continue reading “[How to] Use WordPress RSS Widget in PHP Templates”

[Hack] Add Browser CSS Classes to Body Using WP Filters

Wordpres adds custom classes to <body> depending on the page you are viewing. This is a great function that can be used for styling your theme. Here i will show you how to add body classes depending on the browser your visitor is using. So you can style your theme layout using those classes. Continue reading “[Hack] Add Browser CSS Classes to Body Using WP Filters”

[How to] Display Most Viewed Posts First on Search Results

Wordpress by default shows latest posts first on archive and search pages. Here I will show you how to display search results using post view counts.

WordPress by default, shows latest posts first on archive and search pages. Here I will show you how to sort your posts on search results page using post view counts.

Continue reading “[How to] Display Most Viewed Posts First on Search Results”