Code snippets to restrict authors and contributors of multi-author WordPress websites. The first piece of code prevents them from seeing content assigned to other users. The second ensures that users can only see post counts of their own content.
WordPress is by far the most popular content management system in the world. So, naturally, I love it and have quite a bit to say about it. My WordPress posts may be slightly biased towards code hacks (as opposed to simpler configuration tweaks), but well, I'm a software guy... So, no apologies.
“Echo” is a very handy PHP language construct used to output one or more strings. But echo writes to output directly. So it isn’t very straightforward to save the output of echo into a variable for later use. To do this, you need PHP output buffering.
When integrating WooCommerce with the Genesis theme framework, you will very likely encounter a number of layout and/or styling issues. This article provides short code snippets and instructions to help you resolve the issues in no time.
Got lots of evergreen content on your blog? Displaying the dates they were published may not be great for you or your audience. Read to learn how to remove the date from old (but evergreen) content. This article is specific to the Genesis framework.
Custom excerpts are better for UI/UX because in their absence, most WordPress themes will just grab text from your content. But writing custom excerpts of proper length can be tricky. What you need is a character counter on your WordPress excerpt box!
If you do WordPress site migrations often, you will at some point encounter the problem of weird characters (like â€œ and â€) appearing in your WordPress content. This article explains why this may happen and how to fix the problem.