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
Wordpress - Category Archive
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:
1 |
Notice: Undefined index: page in /home/content/79/7603579/html/wp-content/plugins/php-text-widget/plugin.php on line 15 |
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
How to Display Custom Field Value Only If it Has Value
When working with custom fields in WordPress, it’s necessary to know how to actually display those values on the page. And much of the time, you may have markup associated with that custom field that you only want displayed if the field actually has a value. We are going to learn how to do just that. In this example, we … Read More
Best Way to Manage Custom Fields – WordPress
There is an easy, amazing new way to add and manage custom fields for your WordPress site, and it doesn’t involve learning tons of PHP, or even any coding whatsoever! The answer lies in the plugin called Advanced Custom Fields. This has saved me so much time in working with custom fields, it’s truly amazing! Rarely do I describe plugins … Read More
Custom Post Type – Title and Editor Not Displaying – WordPress Tip
If you’ve been working on adding a custom post type into your WordPress theme, only to fall flat when, inexplicably, the title and editor in the post edit screen have disappeared, have no fear! Here is the common cause. If you don’t add ‘supports’ => array( ) into your custom post type registration, then at the very least WordPress assumes … Read More
Display Posts with 2 or More Tags – WordPress Tutorial
It’s amazing how difficult it is to Google how to do this exact thing, but it’s so simple. But there are already pages linked into your WordPress site that will display all your posts that are tagged with multiple things. You just need to know how to link to it! Here is an example: Example: Link to all of my … Read More