Dave James Miller

Developer. Computer Geek. INTJ.

Month

November 2012

Using Gravity Forms with WP-Types custom date fields

This is a filter to take Gravity Forms format dates (dd/mm/yyyy) and convert them to WP-Types format dates (integer). Read More

Sort and filter WordPress posts query by a custom field

In this example the event start & end dates are entered as timestamps using WP-Types. It could also be modified for Advanced Custom Fields which uses strings. Read More

Keyboard shortcuts to indent/outdent and format as code in WordPress TinyMCE

This allows you to indent lists/paragraphs in the TinyMCE WYSIWYG editor using Tab, and outdent using Shift+Tab. I wrote it because I write a lot of nested lists, it’s tedious using the keyboard to indent and outdent, and I couldn’t find any… Read More

Sarah’s Rainbow Cake

My sister came to visit and brought me homemade cake!

Insert a post into WordPress from an external script

With wp_insert_post() and wp_set_post_terms()... Read More

Get HTTP redirect destination for a URL in PHP

Makes a HTTP request and read the Location header(s) to determine the redirect destination. Read More

© 2017 Dave James Miller — Powered by WordPress

Theme by Anders NorenUp ↑