This code enables you to add the same class to every odd number of posts and another class to every even numbered post, on any type of
WordPress Tips
You've landed on the archives page for posts filed under the WordPress Tips category.
Here you'll find useful tips and tutorials to help solve common problems and build a better WordPress site.
Add Class To 1st Post On First Page of Paginated Archive Page
This PHP code enables you to add a custom class to the first post on any archive page loop. The code, which works in any theme, only adds
Enable Shortcodes in Custom Fields
If you paste any type of shortcode in the value field of the custom fields meta box, it won't work. By default, WordPress doesn't
Exclude Category of Posts From Showing On Search Results Page On Your Site
This code excludes all posts in one specific category from displaying in on your sites search results page from using the search widget
Set Different Amount of Posts Per Page For Each Archive
This code enables you to set a different amount of posts per archive page, otherwise use the default WordPress Reading settings. The
Display List of Tags
This tutorial provides 5 different code examples which enable you to display a list of tags anywhere in your theme. In the 1st example,