Wordpress - Category Archive

Can’t Add Pages to Custom Menu – WordPress Solution

Book Page

A common problem with beginners to WordPress after they create a new site is that they are unable to add anything to their custom menu. In some cases, there are just no options to choose from to add to the menu, in others there is just a vague heading saying, “no items” as well as numerous other problems. here are … Read More

Manual Sort Order for Authors or Users – WordPress

Sorting Cat. Get it? Like "Sorting Hat?" Any Harry Potter Fans out there?

Sometimes it’s necessary to manually select the order in which to sort your authors on your page listing all your authors or users. It is a little tricky to do, but I’ll break it down for you in this simple tutorial. First, you are going to need to add a custom meta field for your users. There are many ways … Read More

Display Only Top-Level Parent Categories – WordPress

Old People, Probably Grandparents

If you are using a loop to list all your WordPress categories or terms in a custom taxonomy and you only want to display the top-level ones, here is how you do that. The trick is in getting the “parent” parameter, which is set to “0” for all top-level terms and categories. So to start a foreach loop and display … Read More

Dropdown List of Authors with Posts in Category – WordPress

While at first it may seem impossible, creating a dropdown list of all the authors with posts in a specific category is not actually all that difficult. This will work with custom taxonomies and custom post types as well, so it should suit the needs of just about anyone. Let’s get right to it! The Code:  

There are … Read More

Get ID of Current Category – WordPress

Getting the ID of the current category in WordPress is actually quite simple. This will work in category archive pages or anywhere a category has been queried. We are going to use get_queried_object() to accomplish this task. The following script will get all the information about our queried object and put it in an array, $category. Then we are simply … Read More

Display Future Posts Easily with query_posts – WordPress

It’s actually quite easy to include future posts in a WordPress loop using a simple query_posts with some arguments. Other information on the web makes it sound like it’s really tricky, but those people are either misinformed or lying. Let’s take a look! This tutorial assumes you are familiar with the use of query_posts to start a new query. If … Read More

Undefined Index – PHP Text Widget Error Solution

If you are using the PHP Text Widget in WordPress and get an error in your Admin section that reads:

Or something similar, there is an easy solution to this annoying problem. First, load up the file plugin.php from the plugins directory, usually wp-content/plugins/php-text-widget/plugin.php. You may want to download it using your FTP program so you can work on … Read More

Authors Loop with Links to Pages – WordPress Tutorial

Creating the loop for a page that displays all of your authors in your WordPress website is something that’s not as straight-forward as you would think it would be. Additionally, actually linking to the author’s page is fairly tricky. So today I am going to show you how to do it. You can take the final code and put it … Read More

Use Responsive CSS to Remove Admin Bar in WordPress

If you want to remove the Admin Bar in WordPress using only CSS, there is a very easy way to do it. You can even make it responsive, so that it will display or be hidden depending on the size of the screen. Additionally, you won’t need to edit any of the core WordPress files, you will only need to … Read More