Forums

Multiple Featured Images
[resolved] Trouble Calling Links (4 posts)

  1. ross.edman
    Member
    Posted 1 year ago #

    First off, I just got this plugin and love it. It is great for customizing output and maintaining image style across a whole site.

    The one problem I keep running into though is it seems the code snippet in the documentation to call just the url of an image does not work, this code in particular:

    kd_mfi_get_featured_image_url( 'featured-image-2', 'page', 'full' );

    I have not been able to get this to put anything out even standing on its own. Is there a better way to do this? Basically what I am trying to do is have the URL of the uploaded images be set as backgrounds so I only need the URL.

    Any ideas would help. Thanks.

    http://wordpress.org/extend/plugins/multiple-featured-images/

  2. marcus.kober
    Member
    Plugin Author

    Posted 1 year ago #

    I'm glad you like my plugin and that it helps you. :)

    There are two solutions for this problem.

    Short way (workaround): Leave the size out and call the function like this:

    `kd_mfi_get_featured_image_url( 'featured-image-2', 'page' );'

    This gives you the url of the full image. This works only for the full version.

    Longer way: There's now an update for my plugin that fixes this issue. ;)

  3. stevevorass
    Member
    Posted 4 months ago #

    Is there something I need to add to my functions.php code to get the featured image URL to show up? Mine is coming up blank :(

  4. stevevorass
    Member
    Posted 4 months ago #

    All I needed was "echo". woops. So it would be like this:
    <?php echo kd_mfi_get_featured_image_url('featured-image-2', 'post', 'full'); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic