Category: WordPress
-
Hiding Posts in WordPress with a Custom Post Status
Are you looking for a way to hide WordPress posts from both the frontend and the backend? By default, WordPress displays all post statuses on the backend post list admin screen. To specifically tell it to exclude a post status, you’ll want to register the post status with the following arguments: function themeprefix_register_inactive_post_status() { register_post_status(…
-
![Firefox Reader View Showing Wrong Author [Bug Fix]](https://www.linsoftware.com/wp-content/uploads/2017/05/firefox-reader-view.png)
Firefox Reader View Showing Wrong Author [Bug Fix]
Here’s an easy fix for displaying the correct author’s name in Firefox Reader View.
-
WordPress get_the_terms by term order [bug fix]
WordPress 4.7 introduced a change to the default term order for get_the_terms() In earlier versions of WordPress, get_the_terms( $post_id, $taxonomy_name) returned the terms in the same order in which the terms were added to the post. But, starting with WordPress 4.7, the terms are being returned in alphabetical order by term slug.
-
WordPress has_post_thumbnail() not working – How to fix the phantom featured image issue
I’ve spent another week working on programming custom WordPress themes, and I’d like to share a fix for the “phantom image bug.” I just made that up. It’s not a real WordPress core bug. But it is a real life programming problem…
-
Debugging WordPress Filters, the_content Filter, and side effects
Debugging WordPress can be difficult. That’s an understatement. I’m sure WordPress is not unique in this difficulty, because as software systems develop and increase in complexity, layers of abstraction increase, and larger and larger parts are like black holes. The developer doesn’t really know what’s going on, doesn’t really want to spend hours digging through…
-

Using the restrict_manage_users Action Hook in WordPress 4.4
I recently participated in an interesting discussion on Stack Exchange about how to add a filter button just above the Users list table on the Users page in Wordpress Admin. To sum up the whole issue, if you used the restrict_manage_users hook to do this in an earlier version of Wordpress, your code for filtering…