WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Noumaan Yaqoob
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/default-featured-image/

  2. janw.oostendorp
    Member
    Plugin Author

    Posted 1 year 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.

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

  3. Noumaan Yaqoob
    Member
    Posted 1 year ago #

    Thanks

  4. janw.oostendorp
    Member
    Plugin Author

    Posted 1 year ago #

    Now updated. It will affect has_post_thumbnail()

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic