ID příspěvku můžete získat z adresy URL pomocí adresy url_to_postid () . Jednoduše zadejte adresu URL a získejte zpět ID: $ link = get_sub_field ('offer_link'); $ id = url_to_postid ($ link ['url']);
ID příspěvku můžete získat z adresy URL pomocí adresy url_to_postid () . Jednoduše zadejte adresu URL a získejte zpět ID: $ link = get_sub_field ('offer_link'); $ id = url_to_postid ($ link ['url']);