Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wordpress get post attachments url

echo	$feat_image_url = wp_get_attachment_url( get_post_thumbnail_id() );
Comment

wp_get_attachment_url

<pre>$parsed = parse_url( wp_get_attachment_url( $attachment->ID ) );
$url = dirname( $parsed [ 'path' ] ) . '/' . rawurlencode( basename( $parsed[ 'path' ] ) );</pre>
<pre>
Comment

PREVIOUS NEXT
Code Example
Php :: error_log wordpress 
Php :: Laravel Framework upgrade from older version 7.x to 8.x 
Php :: laravel request password validation rule 
Php :: laravel return response view 
Php :: php strftime datetime 
Php :: concat in php 
Php :: get key of array element php 
Php :: reset password symfony 
Php :: json encode decode 
Php :: lDownload multiple files as a zip-file using php 
Php :: php loops 
Php :: string match percentage php 
Php :: send var in header php 
Php :: laravel soft delete example 
Php :: Php get all timezone 
Php :: php if elseif 
Php :: email or phone required in laravel 
Php :: curl post laravel 
Php :: pass image path in laravel blade 
Php :: wp php get product item attributes name 
Php :: php check if all array values are the same 
Php :: how to show image in laravel 
Php :: include in php 
Php :: get node id in twig drupal 
Php :: cookies php syntax 
Php :: php sort multidimensional array by key 
Php :: magento 2 get number of cart items 
Php :: laravel model withCount relationship condition 
Php :: php add array to array 
Php :: laravel capsule schema datatime CURRENT_TIMESTAMP 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =