Support » Plugin: Conditionally display featured image on singular posts and pages » Plugin does not work (How to use use get_the_post_thumbnail())

  • Resolved Gregosz

    (@gregosz)


    Hi
    I am using WordPress 5.4.2 with Allegiant theme. Unfortunatelly plugin does not work.
    Maybe, as you suggest I should use get_the_post_thumbnail() or wp_get_attachment_image().
    But I have no idea how should I use above code.
    warm regards,
    Grzegorz

Viewing 5 replies - 1 through 5 (of 5 total)
  • Gregosz

    (@gregosz)

    Hi again,
    I have checked it once again. It works on posts but not on Custom Post Types.
    Is it any way to run it on Custom Post Types as well?
    Grzegorz

    Plugin Author cyrillbolliger

    (@cyrillbolliger)

    Hi Grzegorz

    Thanks for reaching out. The plugin doesn’t limit itself to any post type, so any post type that uses the native WordPress featured image functions should work with the plugin. However there are many plugins and themes, that add their own custom implementation for featured images. As those custom implementations don’t follow a common standard, it is impossible for the plugin to handle them all.

    I did some quick testing with the Allegiant theme and it seemed to work as expected. So I guess the issue is related to your implementation of the custom post type (or the plugin you use for that).

    Cyrill

    Gregosz

    (@gregosz)

    Hi
    Thank you very much for quick response.
    I will do some more tests and let you know about results soon:)
    Grzegorz

    Hi,
    After some tests I think you are right. But fortunately I found which php files I can modify to remove Featured Images. Thank you once again!
    Grzegorz

    Plugin Author cyrillbolliger

    (@cyrillbolliger)

    Hi Grzegorz,
    Thanks for the feedback. I’m glad you found a solution 🙂
    Cyrill

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