WordPress.org

Forums

Simple Staff List
[resolved] Set Featured Image is writing tag to post body (3 posts)

  1. srumery
    Member
    Posted 9 months ago #

    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/

  2. mjselby
    Member
    Posted 9 months ago #

    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

  3. srumery
    Member
    Posted 9 months ago #

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

    Thank you.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.