PHP
How do I cache my WP Query?
Caching is a great way to help improve your site’s page load time. We can achieve a lot of these caching goals through plugins and various server settings, but sometimes you need to get a little more…
PHP
Caching is a great way to help improve your site’s page load time. We can achieve a lot of these caching goals through plugins and various server settings, but sometimes you need to get a little more…
PHP
As of 2015, from what i’ve read on forums and the Birchpress documentation, you can’t — as of a few minutes ago, i have at least something working! This is just a PHP script that you…
jQuery / Javascript
Do you have AJAX on a page and want to change the URL accordingly based on the new content? The following code will get rid of the last bit of the slug on your page and…
API
If you ever need to know if a particular hook is available in the latest version of WordPress, Adam Brown has got you covered. If you ever need to know if a hook is available in a…
PHP
Sometimes we have content that is specific to a certain country and we only want to show, or hide, it for visitors from that country. Or maybe we want to change some of the language used on…
PHP
Listing posts by taxonomy term is a common feature requested when displaying blog posts. Sometimes you also want to separate those posts in sections by their year like this: 2017 News 2017 News Post 2017 News…
HTML
The holidays are almost over and 2016 is in the books, and as much as some people would like to put it behind them we need to first take care of some simple housekeeping. So leave…
Drupal
After following a tutorial for getting the taxonomy terms of a node, I found that I still didn’t have all the pieces of the puzzle. Doing a foreach over $tags = $node->field_tags; would just give a…
PHP
So one function in WordPress that operates very well is “the_excerpt”. If you like the way it applies it’s own character limit but don’t like what it adds at the end, this is the post for…
jQuery / Javascript
So there is a strange anomaly in WordPress when you send an excerpt of a post into a javascript object. If the excerpt has a line break, it will break the object and give you a javascript error….
PHP
So lets talk about proper image implementation. We sometimes run into clients who would like slideshow galleries while uploading 2000-5000px wide images. And it’s important to understand that content managers are not going to KNOW what…
Drupal
Up until now I’ve been mainly working in WordPress, mainly because of my love for ACF and their abilities to have repeating groups of fields. And I finally found a resource that helped me achieve the…
PHP
This is an interesting situation. You might have migrated your blog lately or your hosting provider moved your database somewhere and all the sudden your WordPress blog is no longer showing up in Safari. It may…
jQuery / Javascript
Limiting the characters in a given field is a good way to dummyproof your admin dashboard so content writers don’t write novel length entries for a field that should only be a few words. This could…
PHP
Working on a lot of WordPress sites, I’ve never encountered this till this point. The first clue was that I couldn’t just install plugins from the plugin library, i had to install them manually. However, updating…