PHP Posts

jQuery / Javascript

How do I update the URL on button click?

Biz Cook • November 14, 2017

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…

Read More

API

How to tell which action and filter hooks are available in a particular version of WordPress

Laurel Johnson • October 30, 2017

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…

Read More

PHP

How Do I Get a Visitor’s Location Information using PHP?

Buttons Kavanagh • June 28, 2017

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…

Read More

PHP

How Do I List Posts in a Taxonomy by Year?

Buttons Kavanagh • March 19, 2017

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…

Read More

HTML

Automatically Updating Copyright Year

Caleb Szydlo • December 30, 2016

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…

Read More

Drupal

How do i get all the taxonomies of a node to render in Drupal7?

Sarah Berg • June 27, 2014

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…

Read More

PHP

Replace “Excerpt More” function.

jordanrodriguez • June 10, 2013

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…

Read More

jQuery / Javascript

Safe line breaks for Javascript integrated excerpt calls.

jordanrodriguez • May 28, 2013

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….

Read More

PHP

User Proof Repeater Images

jordanrodriguez • May 14, 2013

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…

Read More

Drupal

How Do I Make a Drupal “repeater field” with Field Collections (D7)

Sarah Berg • April 26, 2013

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…

Read More

PHP

WordPress Stylesheet Missing in Safari

jsandahl • April 15, 2013

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…

Read More

jQuery / Javascript

Limit Character Count in ACF Repeater Text Field

Sarah Berg • April 7, 2013

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…

Read More

PHP

Can’t Update in WordPress – Missing Archive File

Sarah Berg • April 5, 2013

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…

Read More

PHP

Events Lists in WordPress.

jordanrodriguez • March 16, 2013

So you want to make an events list in WordPress? There is a lot to do! First off lets define how this should work. Since I’m writing this blog I’ll tell you how mine works and…

Read More

MySQL

How to Write a Recursive Function with PHP

jsandahl • January 3, 2013

For the uninitiated, the recursive function can be a mind-bender. The concept, however, is not as difficult as it may seem at first glance. The difficulty of a recursive function is that it must have a…

Read More