Select Page

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. Creating the function...

Remove post Author from post

Sometimes when i’m developing a membership site i need to test assigning a post author if the code was not right the first time its good to be able to remove the author rather than having to start a new test. <?php $arg = array( ‘ID’ => 8378,...

ACF Group Loop

Need to loop through all ACF fields in a group? So basicly grab the group id from the backed the acf_get fields function will grab all children of the group then loop through and do what you want with it next up figguring out how to do this for a targeted post (not...

Filters

There is no denying filters in WordPress are amazing but for me the syntax always seems backwards (im not saying its wrong just how my mind reads it), so i thought i would write an article to make it clear (for me anyway). apply_filters() Adds a event in the php...
Preloader