Support

Account

Home Forums Front-end Issues Calling Image from Post to another Page

Helping

Calling Image from Post to another Page

  • Hi Guys,

    I’ve been having trouble with displaying a custom post’s image, for some reason it won’t call the image URL, but returns some sort of post ID. Can someone see if I’m doing it wrong?

    background-image: url('<?php the_field('image', ($post_id[0]), $p->ID); ?>')

    Basically, I want to display the events image from the custom post, on the front dynamically so it can call it by itself on the homepage.

    Thanks so much in advanced!

  • Anybody with more clue than myself?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.