Wordpress post favorite image not showing on wp-admin and on page although it is set on DB. I have inserted posts with unnecessary data and post meta in DB from other db, all is ok. When I call thumbnail url like this , it is working
$url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); echo $url;
But when I run it like this, not working, also not showing the image on post edit page on wp-admin.
What I have missed?
Images urls are from the same server, but from different domains. website I am working in is website.tv/sub (another WP project), but the images urls are come from website.tv(the main WP project).