[Resolved] Call the featured image of an other content

Home Forums Support Call the featured image of an other content

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1340942
    gregoirenoyelle

    Hi,

    For a custom post type “Creation”, I want to call the featured image of a product instead for single and archive page of this content Creation.
    For this post type, I have used ACF to make a relation between this two content (“Creation” and “Product”). I have the product ID stored as a meta in my Creation content.

    On the forum, I’ve seen the generate_single_featured_image_output filter.
    Could you give me an exemple for calling a featured image of an other content?

    Thanks !

    #1341593
    David
    Staff
    Customer Support

    Hi there,

    I think you will need the post_thumbnail_html() filter

    Heres an example of it in use:

    https://wordpress.stackexchange.com/a/134024

    #1342153
    gregoirenoyelle

    Hi David,
    Thanks very much for that. This is the one I was looking for 🙂
    Kind regargs,
    Grégoire

    #1342252
    David
    Staff
    Customer Support

    Glad to hear that 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.