Plugin doesn’t work with Advanced Custom Field plugin – Solution
-
Hi,
# Copy to functions.php
add_filter(‘the_content’, ‘replace_content’);
function replace_content($content) {
$value = get_field(‘YOUR-FIELD-NAME’);
if ($value) {
$content = $value;
}
return $content;
}# Then call the_content();
The topic ‘Plugin doesn’t work with Advanced Custom Field plugin – Solution’ is closed to new replies.