Support » Plugin: Simple Staff List » Set Featured Image is writing tag to post body

  • Resolved srumery

    (@srumery)


    I am trying to get the featured image to work properly within this custom post type plugin. I click the “Set Featured Image” link in the post editor and the regular media modal comes up. When I find an image and show the details, the button for it says “Insert into Post”. When I click it, it actually inserts the <img> tag into the post body as if I was adding media to a post, and not assigning a featured image. Any idea why it is behaving like this?

    I am running version 1.15 of the plugin.

    https://wordpress.org/plugins/simple-staff-list/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi srumey,
    I had a similar problem and resolved it by altering the following in my theme’s functions.php file:

    add_theme_support( ‘post-thumbnails’, array( ‘post’ ) );

    …to…

    add_theme_support( ‘post-thumbnails’, array( ‘post’,’staff-member’ ) );

    Hope that helps.
    Mike

    Thank you, mjselby. That did the trick. I ended up adding a plugin to override what the theme was doing.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Set Featured Image is writing tag to post body’ is closed to new replies.