Skip to content

Instantly share code, notes, and snippets.

@clifgriffin
Created July 28, 2014 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clifgriffin/28fbaa5c4eb663ab200e to your computer and use it in GitHub Desktop.
Save clifgriffin/28fbaa5c4eb663ab200e to your computer and use it in GitHub Desktop.
Exclude post properties from being overwritten during Advanced Content Templates template load.
<?php // do not include opening PHP tag
// You can put this in your theme's functions.php file
add_filter('act_protected_properties', 'my_protected_properties');
function my_protected_properties($protected_properties) {
$protected_properties[] = 'post_title';
return $protected_properties;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment