PHP Posts

PHP

How to 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

jQuery / Javascript

Flexible ajax using jQuery

jordanrodriguez • December 22, 2012

We recently had to send a delete request to a javascript confirm. We were using bootstrap so instead of the standard confirm(); command we wanted to display our own module. We also wanted a universal command…

Read More

PHP

How Can I Make a Php Alphabet Loop?

Sarah Berg • December 21, 2012

A useful feature of many coding languages is the “for loop”. A basic loop in php has for following structure: for (init; condition; increment) { code to be executed; } Parameters: init: Mostly used to set…

Read More

PHP

How do I remove a domain from a string in PHP?

Sarah Berg • November 15, 2012

This doesn’t feel like it should be that hard, and luckily it’s not! However, some of the more common ways I found had been commented on being rather unreliable.  Most people recommend an easy str_replace, removing…

Read More