Default featured image
[resolved] Which theme I should test this plugin with (4 posts)

  1. Noumaan Yaqoob
    Posted 3 years ago #

    It seems like this plugin would work only in situations where theme developer has decided not to use a default featured image and display featured image whether or not there is any featured image with the post.

    Most standard themes would check if there is a featured image then display otherwise show the post. So I can't test the plugin with twentyeleven or any standard theme. Is there a theme where I can just activate the theme and test this plugin?


  2. janw.oostendorp
    Plugin Author

    Posted 3 years ago #

    Well the question isn't the theme but it's how it is called.

    In twentyeleven there is a has_post_thumbnail() around the featured img in the header. That won't work. because it won't reach the get_the_post_thumbnail() or the_post_thumbnail(). This is actually what you would want to happen. The check is very specific.

    In twentytwelve there is no check and is just calls the_post_thumbnail() (in content.php) that will get it's default featured image.

    The plugin works with get_the_post_thumbnail() and the_post_thumbnail().
    It won't affect has_post_thumbnail()

  3. Noumaan Yaqoob
    Posted 3 years ago #


  4. janw.oostendorp
    Plugin Author

    Posted 3 years ago #

    Now updated. It will affect has_post_thumbnail()

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Default featured image
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic