WordPress.org

Forums

Display Posts Shortcode
[resolved] broken (4 posts)

  1. jamie
    Member
    Posted 3 years ago #

    on freash install this is what i get

    Fatal error: Call to undefined function has_post_thumbnail() in /home/artvoid/public_html/wp-content/plugins/display-posts-shortcode/display-posts-shortcode.php on line 133

    http://wordpress.org/extend/plugins/display-posts-shortcode/

  2. Bill Erickson
    Member
    Plugin Author

    Posted 3 years ago #

    Good catch! I hadn't tried this on a WordPress site that didn't have post thumbnails turned on. I'll fix this and release a new version next week

  3. Bill Erickson
    Member
    Plugin Author

    Posted 3 years ago #

    What version of WordPress are you using? If you're using a version 2.9 or later you shouldn't be receiving this error.

    The function has_post_thumbnail() exists in WordPress, whether or not you have post thumbnails turned on.

    On a clean WordPress installation (3.4) using the TwentyEleven theme, I turned off post thumbnails by removing this line in functions.php:

    add_theme_support( 'post-thumbnails' );

    There are no error messages, even if you include image_size="thumbnail" in your [displays-posts] shortcode.

    Since I can't reproduce your error, I'm marking this as resolved. If you're still having the issue I'd be happy to troubleshoot with more information

  4. jamie
    Member
    Posted 3 years ago #

    would of been 3.2 i think but have stopped development on that site for now

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Display Posts Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.