How to get attachment file name by id? @wordpress
$attachment_id = 100; // attachment id
$thumbnail_name = basename ( get_attached_file( $attachment_id ) ); $attachment_id = 100; // attachment id
$thumbnail_name = basename ( get_attached_file( $attachment_id ) ); Share this post:
Got a Question? Check out our FAQ Section.