Social media links for WordPress the right way

Inserting a simple link to Twitter is one thing, but including SEO friendly, valid links using WordPress template tags to make it extra convenient for your users to add posts to social media sites requires a little more thought. Fortunately, the linked article does...

Use a shortcode in WordPress template files

Shortcodes are designed to allow you to call certain plugin or built in theme functions within the post/page editor. This code snippet allows you to use shortcodes in a template file as...

Use different single post templates based on category

Need your single post views to be totally different depending on what category the post is in? You can do this easily by creating special single post files for each category as needed, and then replace the code in your single.php file with the following: <?php if...

Change storage length of the cookie WordPress sets

WordPress sets a cookie on a user's computer that remains stored for 10 days after they visit a site. This means they will not have to re-enter their info every time they leave a comment, nor will they have to re-enter the password on password protected pages or...

How to limit WordPress search to certain categories

This is a great tip for limiting the built in search functionality to search only the category you specify. The author provides the code for searching just a single category or searching only the children of a certain...

Edit your WordPress database using SQL queries

I don't know about you, but I've always been a little afraid to run queries directly on my WordPress database. This post goes through how to accomplish many tasks using queries. Sometimes the task of going post by post to make a change would take you 10 times as long...

Show ads only to search engine visitors

Search engine traffic is where you really make money on Adsense, so some blog owners choose to show ads only to visitors who come in through the search engines. This article explains how to accomplish that and to show alternate content to other...

Add Google Adsense into post wherever you want

This post explains how to give the post author the ability to add Google Adsense (or any other content of course) into a post wherever they like by using a shortcode or just a certain text string using the str_replace() function. Very...

Categories