Tries to convert an attachment URL into a post ID.
$url
Sortie :
@param string $url The URL to resolve. @return int The found post ID, or 0 on failure.
// Utilisation de la fonction attachment_url_to_postid
$result = attachment_url_to_postid($url);
if ($result) {
// Votre logique ici
}
Chargement des actualités...