Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author John Gardner

    (@jgardner03)

    Hi Anthony,

    Thank you for using my plugin and I apologize for the trouble. I’m not aware of any issues w/ the latest versions of my plugin and WordPress. Did you update any other plugins at the same time? Is it possible to disable the other plugins one at a time and see which one may be causing the trouble?

    Thread Starter Anthony Rageul

    (@anthony-rageul)

    Hi,
    Actually I recently updated some plugins, but it seems that desactivate them one at a time does not change anything in the portfolio admin page…

    Plugin Author John Gardner

    (@jgardner03)

    Hi,

    Sorry for the delay… Have you tried switching themes?

    Thread Starter Anthony Rageul

    (@anthony-rageul)

    Don’t care about the delay!

    So, it rules with Twenty Fifteen theme.

    The starter theme I use was generated on https://underscores.me/.
    No difference if I restore this theme without any of my own customization: the featured image box is still missing on the portfolio admin page.

    By the way, here is the website we are talking about: https://www.anthonyrageul.net/

    Plugin Author John Gardner

    (@jgardner03)

    hmm… I’ve tested the plugin with the Twenty* themes as well as genesis but not underscores. Can you add the following to your current theme’s functions.php file?

    add_action( 'after_setup_theme', 'arconix_add_post_thumbnail_support' );
    function arconix_add_post_thumbnail_support() {
        global $_wp_theme_features;
        if( !isset( $_wp_theme_features['post-thumbnails'] ) ) {
            $_wp_theme_features['post-thumbnails'] = array( array( 'portfolio' ) );
        }
        elseif( is_array( $_wp_theme_features['post-thumbnails'] ) ) {
            $_wp_theme_features['post-thumbnails'][0][] = 'portfolio';
        }
    }
    Thread Starter Anthony Rageul

    (@anthony-rageul)

    It works good! Thanks!
    Will you correct this problem in a next release of arconix portfolio?

    Plugin Author John Gardner

    (@jgardner03)

    It’s funny because that code was actually a workaround I had in place for before featured image support could be added when the post_type (portfolio) was registered in WordPress. Once that was support could be handled natively by WordPress it was supposed to have made my workaround unnecessary. I confirmed by testing with Genesis and the Twenty* themes and removed the code. Evidently that workaround is still needed in some cases so I will be adding that back in for the next version. Thank you for your help in getting this resolved.

    Thread Starter Anthony Rageul

    (@anthony-rageul)

    You’re welcome! Portfolio plug-in is great!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘featured image box disapeared’ is closed to new replies.