Often when people truncate text in their WordPress excerpts or sample text, they simply limit the total number of characters and add an ellipsis. It’s pretty easy to do, but it usually ends up with a word being broken at the end. For exampl… This function will truncate any phrase by the number of words […]
Tag: Wordpress
Wow, that was a long title for this short article. First off, I am assuming that you know how to add JS scripts to your WordPress admin. If not, you need to know that first. So without further ado… if ($ === undefined) { $ = jQuery; } if ($(‘#custom_taxonomy_id-pop’).length) { $(‘#custom_taxonomy_id-pop’).remove(); $(‘#custom_taxonomy_id-tabs’).remove(); $(‘#custom_taxonomy_id-all’).show(); } […]
Today I went to import a large number of posts from a live Wordpress site to a local copy of the site. We all know that the Wordpress Importer tool hasn’t had much love lately and is slightly broken. PHP will time time out you and drive you crazy if you try to use it.
Creating custom functions in your WordPress template’s function.php file is a regular thing for many of us. What you might not know is how easy it is to wrap them in a class, or even why you would. Wrapping them in a class keeps them both organized and self-contained from other functions that may have […]
I recently set out to customize WordPress profile fields for a specific role. You may want to have custom fields for users, but have different fields for different roles. For example, Authors may need some additional contact information, while Subscribers need only some basic fields. The concern I had was wether or not an Admin […]
Building a custom HTML form for WordPress is something I do fairly regularly. When adding an upload form, it’s important to check for allowed file types. You wouldn’t want anyone uploading a malicious PHP script, right? Wouldn’t it be great if WordPress did that for you? Of course it would.
Often times, people want a way to modify the look of the registration form page in Wordpress. However, this desired outcome is often misplaced. What most people want to do is simply place the form on a page, such as the home page or special registration page.
The truth is, and always has been, that social media is not controlled by you. Those comments on Facebook do not belong to you. They belong to the social network. Those followers are not yours either. They belong to the network too.
Alright, I have to confess. This took me some time to wrap my head around. It also seemed like a lot of people were having the same problem. The question is “How do I add custom post meta fields to the quick edit function in WordPress?” For some reason, I had a hard time finding […]