Skip to content
Advertisement

How can I display the featured icon on frontend?

Hello I applied the code I found here.

But I can’t figure out how can I call this image on frontend.

I tried this so far:

JavaScript

but I guess this is not the correct way to get the image link from the custom metabox. Any suggestions?

Thanks in advance.

Advertisement

Answer

You get the photo ID from get_post_meta So the next step is to get the url of the image, see here

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement