// An attachment/image ID is all that's needed to retrieve its alt and title attributes.
$image_id = get_post_thumbnail_id();
$image_alt = get_post_meta($image_id, '_wp_attachment_image_alt', TRUE);
$image_title = get_the_title($image_id);
Code Example |
---|
Php :: php foreach string char |
Php :: php reset array keys |
Php :: php array index exists |
Php :: php set content type pdf |
Php :: php string mayusculas |
Php :: file_get_contents timeout |
Php :: php timestamp to date |
Php :: laravel blade errors all |
Php :: webmin forgot password |
Php :: php calculate date difference |
Php :: count object php |
Php :: year shortcode wordpress |
Php :: Disable wordpress wp cron |
Php :: start server in laravel |
Php :: codeigniter dump query |
Php :: wp config define site url code |
Php :: time to load php page |
Php :: php clean html tags |
Php :: wordpress get username |
Php :: var_dump beautify |
Php :: symfony clear cache |
Php :: bitrix is admin |
Php :: php artisan ui auth |
Php :: get_posts category |
Php :: is php and javascript similar |
Php :: woocommerce custom sale banner, sash |
Php :: pause php |
Php :: return error when duplicated laravel |
Php :: collection laravel filter |
Php :: Add Laravel .env variable to Vue component |