Calling wp_get_attachment_url() after get_blog_details() makes a plobelm.
-
Hi.
When I call the function get_blog_details() before the wp_get_attachment_url() function to get the url of the featured image of a post, the url contains ‘sites/$blog_id’ string.
$blog = get_blog_details($blog_id); $url= wp_get_attachment_url( get_post_thumbnail_id($post_id) ); echo $url;
The url contains ‘sites/$blog_id’ and makes 404 not found.
Please check it out.
Thanks.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Calling wp_get_attachment_url() after get_blog_details() makes a plobelm.’ is closed to new replies.