• Resolved kevin

    (@k-win)


    I can’t get anything to show up on a blank theme and Twenty fourteen running locally on WordPress 4.0 by using

    cfi_featured_image( array( 'size' => 'large', 'title' => 'This is a test...', 'class' => 'my-image', 'alt' => 'My image' ) );

    and

    cfi_featured_image_url( array( 'size' => 'large' ) );

    I’ve set an image for the default category and i’m not running any other plugin.

    Has it been tested with 4.0?

    https://www.ads-software.com/plugins/category-featured-images/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mattia Roccoberton

    (@blocknotes)

    Yes, it works on WordPress 4.0
    My website has WP 4.0 and my plugin is active: https://blocknot.es/
    I have also tested it with WP 4.0 + Twenty fourteen theme.

    Did you set the category featured image?
    Are you sure the post has that category set?
    If you open that single post, do you see the category featured image?

    Thread Starter kevin

    (@k-win)

    Yes the category has an image and the post has the right category selected.
    It does display now via the_post_thumbnail.

    But i’d need to retrieve the url of the featured image for the current category and use it. I’m trying with cfi_featured_image_url() but with no success. What does this function do exactly?

    Plugin Author Mattia Roccoberton

    (@blocknotes)

    cfi_featured_image_url() returns the current featured image URL.
    I have just tried it with Twenty Fourteen theme and it works as expected.
    I can’t reproduce the problems you talk about, it could be something not related to my plugin.

    Thread Starter kevin

    (@k-win)

    Got it working now but just within a single post. Can i use it on the main page?

    Plugin Author Mattia Roccoberton

    (@blocknotes)

    The Home Page (as Blog posts) can contain more than a category so when you call my functions they don’t know which category to use.
    If your Home Page point to a Category page (you have to create a special page and change the Home to static page) my functions will show the featured image.

    Thread Starter kevin

    (@k-win)

    Got it. So in my case it won’t be much help.
    Thanks for the help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WordPress 4.0 compatible?’ is closed to new replies.