PHP Posts

PHP

Function for Guaranteed Alt Text

Laura Kressin • July 9, 2018

For developers working with accessibility compliance, alt text for media is important.  In the WordPress CMS, images are already built with an “Alt Text” field, that both content creators and developers can utilize to make their…

Read More

jQuery / Javascript

How do i access my cookies in PHP and Jquery?

Sarah Berg • May 29, 2018

So, being 7+ months pregnant gives you some weird cravings… Like cookie brownies. Not a cookie and a brownie, they needed to be baked together (very important). Anyways, probably not what you came to read –…

Read More

PHP

How do I cache my WP Query?

Pat Kavanagh • April 23, 2018

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…

Read More

PHP

Birchpress – How Do I Export Client Appointments?

Sarah Berg • March 12, 2018

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…

Read More

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?

Pat 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?

Pat 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