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

Redirect With .htaccess and Godaddy Hosting Not Working – Solution

Goddady Server Redirect

For something that seems so simple, there’s a lot that can go wrong with setting up either a temporary (302) redirect or permanent (301) redirect. With Godaddy hosting specifically, you may run into an issue that you did not foresee. You may even have no trouble redirecting the ENTIRE site, but to redirect just the home page you may encounter … Read More

Padding or Margin Only Affects First Line of Text – CSS

A common problem when formatting your website with CSS is that the first line of text in a paragraph, header, or link is affected by margin or padding while the remaining lines are not. It may even appear as though the first line is indented in some cases while none of the others are. Solution for padding or margin only … Read More

Vimeo Error: “Blocked a Frame with Origin” – Solution

Currently, many users of the embedded iframe video player from Vimeo are getting an error that looks something like this:

This may or may not be causing any problems in actual functionality, but it is annoying and should be fixed regardless. Solution to Vimeo Error The Vimeo team is currently in development of the solution to this problem which … 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

Change Number of Results in Loop: WordPress

If you want to limit or even make UNlimited the number of results produced by the WordPress loop, without starting a new wp_query, I have a solution for you. This will work on an results or archive page, anywhere the loop is used, including results for authors, custom taxonomies, custom post types, or categories. In this example, we are going … Read More