Support » Plugin: Posts in Sidebar » Custom field image, The Id instead of the image is displayed

  • Resolved gabsej

    (@gabsej)


    Thanks for this great plugin, which helped me a lot.
    I just have a problem to use it it with custom field.
    I created a custom field call “logo” which is an image.
    When I select “Display the custom field of the post” and “logo” it is the ID from the media instead of the media itself which is displayed.
    How to change that ?

    https://wordpress.org/plugins/posts-in-sidebar/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Aldo Latino

    (@aldolat)

    Yes, that option has been added just to echo (not parse) the value of the selected custom field. This was made upon a user request.

    Thread Starter gabsej

    (@gabsej)

    Thank you very much for your answer but I thing their is a bug :
    The custom field I created is an image and the name of the field is “logo”.
    When I select “Display the custom field of the post”, I just have the ID of the image displayed instead of the image itself (like a thumbnail).
    If I select “Also display the key of the custom field” I have the name of the field “logo” and the Id but it’s still different of the image I expect.
    Did I miss something ?

    Plugin Author Aldo Latino

    (@aldolat)

    As I wrote, these feature is intended only to echo a value. In your case, the value will be the ID of the image. For this reason you do not see the image itself.

    Let me know if you have any question.

    Thread Starter gabsej

    (@gabsej)

    Sorry, I didn’t understood well.
    One more time you did a great job and I thank you a lot.

    I thought I could succeed to my goal without php.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom field image, The Id instead of the image is displayed’ is closed to new replies.