Hi, is it possible to set a function as a default field with acf?
Example: get_the_title()
.
I’m reading between the lines here but I think you mean something like this:
<?php $custom_title = get_field('custom_title');
if( ! $custom_title ) { $custom_title = get_the_title(); } ?>
<h1><?php echo $custom_title; ?></h1>
So basically we say; if no custom field exists use the post title. It’s not the most detailed of questions but I’m hoping this is a suitable answer and helps you.
@morgyface Thanks, that’s exactly what I meant.