Support

Account

Home Forums General Issues Retrieve ID instead of link from 'page_link' field-type Reply To: Retrieve ID instead of link from 'page_link' field-type

  • I guess I solved my problem with the following:

    add_action('acf/init', function () {
    	remove_filter('acf/format_value/type=page_link', array(acf_get_field_type('page_link'), 'format_value'), 10);
    });

    Later on I will use get_permalink() on numeric values and leave string values (archive links) untouched.