Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author fifu.app

    (@marceljm)

    Hi!

    Go to admin/meta-box.php

    Just remove ‘post’, ‘page’, and ‘product’ from the code above.

    $post_types = array(‘post’, ‘page’, ‘product’, get_option(‘fifu_cpt0’), get_option(‘fifu_cpt1’), get_option(‘fifu_cpt2’), get_option(‘fifu_cpt3’), get_option(‘fifu_cpt4’));

    If it works, please give this plugin a 5-star rating =)

    Plugin Author fifu.app

    (@marceljm)

    So I’m considering that solved! =)

    Thread Starter modamuseum

    (@modamuseum)

    No, sorry Marcel it didn’t have any effect!

    I’d tried just moving ‘post’ from that list already – really useful plugin though!

    Plugin Author fifu.app

    (@marceljm)

    As soon as possible, I send you the code.

    Thread Starter modamuseum

    (@modamuseum)

    That’s great – thanks very much Marcel!

    Plugin Author fifu.app

    (@marceljm)

    A little question here that can help me to help you:

    Why do you need to disable the plugin for ‘normal’ posts?

    Because the use is optional. And you can disable the meta boxes also. So I would like to understand…

    Thread Starter modamuseum

    (@modamuseum)

    Hi Marcel,

    For the site we are building, we’ve already imported all the posts from a different blog and these are displaying using a masonry plug-in. If I turn on featured image in post, this will then duplicate the images in the posts and also display a featured image above the thumbs and excerpts for the posts that appear in the pages displaying categories of posts using the masonry plug-in.

    What I’m really hoping to use the FIFU plug in for is for a custom post type (for a museum catalogue record) that has the image url imported into a field.

    In an ideal world, it would also be great if the featured image could be automatically set from that field. Do you think that is something you could possibly quote for as an add-on feature?

    Thanks again for your time!

    Plugin Author fifu.app

    (@marceljm)

    Maybe the duplicated images are being caused because you enabled Featured Image in Content in plugin settings. In this case, disable the toggle. Let me know what happens.

    Thread Starter modamuseum

    (@modamuseum)

    Hi Marcel – yes that’s right! I was hoping to disable featured image in content for normal posts, but allow it for a custom post type…

    Plugin Author fifu.app

    (@marceljm)

    Try to replace

    $url = get_post_meta($post_id, ‘fifu_image_url’, true);

    by

    if (get_post_type($post->ID) != ‘post’ && get_post_type($post->ID) != ‘page’) $url = get_post_meta($post_id, ‘fifu_image_url’, true);

    in

    thumbnail.php.

    Let me know if it worked for you =)

    Plugin Author fifu.app

    (@marceljm)

    Hi.

    Did it work? Is the topic solved?

    Plugin Author fifu.app

    (@marceljm)

    If the plugin is working fine at all, please give it a 5 star rating. Thanks =)

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Disable on non custom post type’ is closed to new replies.