Post meta shortcode returns ID

homepage Forums Support / Help Post meta shortcode returns ID

This topic contains 3 replies, has 2 voices, and was last updated by  Jérôme Obbiet 2 years, 5 months ago.

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

    ellicrrnz12
    Participant

    I have a custom field in a custom post type. When I enter the custom field key into the mtw_post_meta shortcode it returns the ID of the image I am trying to retrieve not the actual image. Any ideas why this may be happening?

    #3934

    Jérôme Obbiet
    Keymaster

    How is create your custom field? ACF ?

    #3936

    ellicrrnz12
    Participant

    Yes I used ACF to create the custom fields. Thanks for your reply.

    #3938

    Jérôme Obbiet
    Keymaster

    sorry, anyway if you have an ID use the Featured image widget.

    Featured image


    and type the meta key in custom field option

    But if you want to return the url there is an option in the ACF the return id, url or object
    then with url you should use “insert html” in Muse

    
    <img src="[ mtw_post_meta ... ]" />
    
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

More links:

There are no stupid questions! Let's talk

FOLLOW US

Find us on Adobe Muse Resources

 

© Copyright 2017-2018 MWuse

ACCESS TO ALL WIDGETS & THEMES

(BY MUSE TO WORDPRESS)

You will be free to leave and to continue using the downloaded themes and widgets.

Discover   /   Installation   /   Tutorials   /   Shortcodes   /   FAQ   /   News   /   mwuse.com - Powered by Muse and WordPress