Posts Tagged ‘WordPress’

Auto-Redirect when WordPress Search Query Only Returns One Match

Tuesday, November 8th, 2011

There are times when searching a WordPress blog, you only get one item in the result. Depending on how organized your site is, this should be the item the user was looking for anyways. One of our users asked if there was a way to redirect to the post if the search query results only one match. In this article, we are going to show you how to redirect users to the post when the search query only returns one match.

Link: WP Beginner

25+ Extremely Useful Tricks For The WordPress Functions File

Thursday, October 27th, 2011

In your WordPress theme folder, there lays the most powerful theme file known as functions.php. As the name suggests, this file adds unique functions to your WordPress installation. This file works just like a plugin within your theme. So you can modify/override WordPress core features without editing any core file. If used correctly, this file can do wonders for your WordPress site. It also speeds up development because you can have all the codes at one place. In this article, we will share some of the most incredible and most wanted tricks for the WordPress functions.php file.

Note: This article is targeted for WordPress theme developers. You may need have some PHP knowledge for some hacks.

Link: WP Beginner

How To Insert Ads Within Your Post Content In WordPress

Wednesday, October 19th, 2011

Have you seen blogs that has ads inside their post content? These ads are either after the first paragraph or the second paragraph in most cases. Most beginners wonder whether these sites insert ads manually when they write the content, or if there is a special code for this. It would seem extremely inefficient if one enters the code manually specially if you had to switch advertisers after one year and you have over 200 articles. This article will show you a snippet that will let you enter ads within the post content after the first paragraph.

Link: WP Beginner

How To Duplicate WordPress Theme Files

Friday, October 7th, 2011

Have you ever worked on a client’s site who is not willing to give you FTP? The hardest part about that is you cannot create new template files, nor you can duplicate an existing template file. In this article, we will share with you a plugin that allows theme authors to clone an existing template file from the WordPress admin panel. This will keep you from having to download, rename and re-upload new files via FTP.

First thing you need to do is install and activate Theme File Duplicator Plugin.

Link: WP Beginner