When your website means business.

Snippets: PHP

Display Featured Image on Listing»

How to add featured image to other post types. ADD TO THEME FUNCTIONS // This theme uses post thumbnails add_theme_support( 'post-thumbnails', array( 'plans','listings','news','post' ) ); ON POST-TYPE SPEC 'supports' =>…
Images, PHP, WordPress | Type: PHP

Replace Deprecated Init create_function (php 7.2)»

Several plugins still use the deprecated function. //deprecated version add_action('widgets_init', create_function('', 'return register_widget("SimpleSectionNav");')); //7.2 ready version function ssn_register_widget() { return register_widget("SimpleSectionNav"); } add_action( 'widgets_init', 'ssn_register_widget' );
PHP, WordPress | Type: PHP

Turn Start Date into Pretty Date»

Once you've established a date, display it as you like (see catholic fdn single-events.php for complex usage)
ACF, PHP, WordPress | Type: PHP