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.
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.
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.
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.
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”
This tutorial will show you how to easily remove the WordPress category title attribute from your WordPress post categories menu, this is the little pop-up text you see when hovering over a category link in your browser. This is a feature I always find myself using over and over again so wrote it into a neat WordPress function to share with you all.
Continue reading “Remove WordPress Category Menu Title Attribute On Browser Hover”
This tutorial will teach you how to display a single WordPress post category in your theme even if the article has been posted in a sub category. I created this technique for use in several WordPress themes I have developed where I only wanted to display the actual category that the article was posted in even when posted to sub categories. It’s a nice technique for themes with limited space or users that don’t want to display all categories that a post has been placed in.
Step 1: Creating A Retrieve Actual Category Function
Firstly you will want to open your current themes functions.php file then copy the code block below and paste it into your functions.php file at the bottom, close and save your functions.php file.
Continue reading “Display Single WordPress Post Category Even If Its A Sub Category”
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
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”
Change WordPress login logo without plugins in this simple tutorial. There are several reasons why you would want to change the default WordPress login logo of your WordPress site, maybe your building a site for a client, you want members registering for your site to see a custom logo or you simply want to add some personal eye candy when logging into your site.
Continue reading “Change WordPress Login Logo Without Plugins”