Select Page

Blog Articles

A collection of brain dumps on many web development topics WordPress Focused but aim to be helpful to anyone in the industry.

Programatic ACF Locations

Now i am using ACF for front end forms a lot more i needed to show the same form with different fields based on location add_filter('acf/get_field_group', 'my_change_field_group'); function my_change_field_group($group) { $pid = get_the_ID(); if ( $pid == 2218...

Add Post id to post title via ACFE Form

When creating posts via a ACFE Form in order to have unique titles i like to use the post id but this leave me with a bit of a cart before the horse situation how can i add the id when the Post hasn't been created thankfully ACFE has a hook for that:   <?php...

Wp cron

This is a little post to remind me how to setup a wp cron will grow to be helpfull over time fist don't try it with code (not that hard but just clunky to track) insted use this plugin:WP Crontrol Setup is pretty self explanatory add cron event with the required...

Time expire access to post for user

In this implementation we will be adding a ACF repeater to the restricted post that contains a field for expire date user id then we will build a template to show: Guests a login screen Logged in users without access a chance to buy Logged in users with access the...

WP site health URL

Our company switches off site health display with a code snippet in the child theme because we find that the notifications are not beneficial to our clients for example telling the client running php 7.2 is a critical security issue just worries them and tie up our...

Adding JavaScript variables via PHP

This is quite useful when you have several JavaScript functions which requires to define url (e.g. ajax calls). Rather than hardcoding link inside each function we can specify one variable. In this way, it can be used in different functions.

Preloader