• Resolved hotscotchbonnet

    (@hotscotchbonnet)


    Hello there,

    Apologies in advance – I am very amateur when it comes to PHP. I have spent a couple of days trying to figue this out and have learnt a bit, but not enough to make the edits I need. If you get a chance I would love a pointer in the right direction.

    I have set up the MFI plugin and added my site’s custom post types to the MFI array in my child theme funtion.php. The MFI box displays on the custom post screens and works great ??

    My problem is that I want to set a default ‘featured image 2’ for this custom post type.

    Is this something I can add to the MFI filter in my functions.php?

    Thanks for making a great plugin.

Viewing 1 replies (of 1 total)
  • Plugin Author Marcus Kober

    (@marcuskober)

    Hi there,

    thank you. ??

    At the moment there’s no way to define a default image. But you can help yourself with the function kdmfi_has_featured_image( $image_id, $post_id );. Use this in an if clause and if there’s no featured image attached then output your default image.

    Regards,
    Marcus

Viewing 1 replies (of 1 total)
  • The topic ‘setting a default image?’ is closed to new replies.