Get attachment images does not return any attached images

For this feature to work the images must be uploaded to the media library from that page. In other words, clicking the “Add Media” button and adding images already in your media library won’t do it. You must click “Add Media” then “Upload Images” and add them to the page.

Url link to feature image in the portfolio [closed]

I think it is possible with custom fields. Add a custom fields, for example, named link. Put the link into the value field. Then you will be able to access it something like that: <a href=”https://wordpress.stackexchange.com/questions/187970/<?php echo get_post_meta( get_the_ID(),”link’, true ); ?>”> <?php the_post_thumbnail(); ?> </a>

Edit image itself

There is no default way to do this, but this popular plugin solves the issue for most people. I have no connection to the creators of this free plugin, but I’ve used it on several sites. https://wordpress.org/plugins/enable-media-replace/