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

  • You cannot alter the conversion of the links as stored in the database.

    You can get the unformatted value and this will return the ID if that is what is stored.

    $value = get_field('page_link_field', false, false);

    see the documentation for get_field() https://www.advancedcustomfields.com/resources/get_field/