How To Limit WordPress Search Results to Specific Post Types

This short tutorial will show you how to limit WordPress search results to specific post types when creating WordPress sites that have multiple custom post types added. To acheive this functionality we will use the WordPress pre_get_posts filter to hook into the default WordPress search query.

Continue reading “How To Limit WordPress Search Results to Specific Post Types”

Embed GitHub Gists In Your WordPress Posts Without Using Plugins

This WordPress tutorial will show you how to easily embed GitHub Gists into your WordPress posts by placing a small code snippet into your WordPress themes functions.php file. After you insert this code into your thmes functions.php you will be able to embed Github Gists into your WordPress post content by simply pasting the Gists url into your WordPress post editor.

Continue reading “Embed GitHub Gists In Your WordPress Posts Without Using Plugins”

How To Change The WordPress Posts Label To Article

When creating a WordPress powered website for a client you may find that the default WordPress admin navigation menu label of Posts can be confusing when the client is attempting to create news content. A more suitable replacement menu label to use instead of Posts and one which a client should instantly recognise is Articles.

825QF6JVT5N9

change-wordpress-post-label-articles

Continue reading “How To Change The WordPress Posts Label To Article”

Pretty WordPress Search URLS Without Plugins

This tutorial will show how to easily transform your WordPress search urls into a more readable and frieindly rewrittend structure instead of the default url which contains ?s= and without using any additional WordPress plugins.

Continue reading “Pretty WordPress Search URLS Without Plugins”

10 Useful WordPress Hacks And WordPress Functions

This article lists 10 Useful WordPress Hacks & WordPress Functions that you will find helpful when developing your own wordpress themes. A few of my personal favorite WordPress Tips in this list are Caching custom WordPress queries and Deluxe Blog Tips Meta box script for easy custom metabox creation.

1.) How to Remove the Width & Height Attributes From WP Image Uploader

When creating a responsive WordPress theme you may need to remove the default image height and width attributes that are automatically added by the WordPress media uploader.
Continue reading “10 Useful WordPress Hacks And WordPress Functions”

Add .first & .last CSS Class Automatically To WordPress Widgets

Previously we showed you how to Add .first & .last CSS class to WordPress Navigation Menus to help with styling attributes when designing a WordPress theme. Today I though it would be beneficial to follow up that tutorial with one that shows you how to automatically add .first & .last CSS class’s to all WordPress widgets displayed anywhere on your site by adding a simple filter to the wordpress

Continue reading “Add .first & .last CSS Class Automatically To WordPress Widgets”

Create A WordPress Post Source Root Domain URL From An External Sites Full Article URL

Recently when creating a tumblr style theme for wordpress I wanted include a source article linkĀ  in the wordpress post_type links linking back to the original article. When I was displaying the source link I wanted it to display only the sites root domain as the source rather than the full url of the article. This tutorial will teach you how to achieve this through a php function that you can easily place within your own themes functions.php file to get the same feature on your existing wordpress site.
Continue reading “Create A WordPress Post Source Root Domain URL From An External Sites Full Article URL”