The default WordPress excerpt character length can be changed by inserting the below snippet into your functions.php.
Change 20 to however many characters you want to limit your excerpt to.
When you need to restrict users in WordPress, there are heaps of plugins you can download. Personally, I think too many plugins is a bad practice in WordPress, it can lead to “plugin bloat”, where your website can be slowed down and you’re reliant on too many plugins to make your site work.
In the video below, you will see how I manage user restrictions quite easily using a must use plugin in WordPress and a few minutes of my time.
A client recently needed me to migrate a lot of posts and tags to WordPress from a different CMS.
After importing all of the tags and posts to WordPress, I noticed that If I went to the tags page, all of the tags were listed, but they were all showing as ‘0’ even though the tags were assigned to posts. This was specifically used for a custom post type and custom taxonomy.
After creating my own WordPress theme, I needed a search page. I created “search.php” (as that is the template that WordPress recognises to display search results). After testing, I noticed if I hit the submit button without entering a search query, all of the posts on my website will display. Obviously, this isn’t good and after looking online have found a fix to show you.
I absolutely love Woocommerce PDF Invoice & Packing Slips, not only does it fulfill all of my needs without purchasing an expensive plugin from WooThemes, it’s consistently updated by the developer and he offers quality support. I don’t know how he does this for free, he does sell templates for the PDF’s so support him if you can.
Sorting posts in WordPress is pretty easy. Though, looking on search, there’s so many different ways to do it, including the use of plugins.
I try my best to stay away from using plugins as much as possible (I don’t like plugin bloat) – so what I do is try and code as much as I can into the template I’m creating. I may want to use a certain type of sorting order for one archive of posts, but for another archive I might want a different type of sorting order.