Title: WordPress 4.0 compatible?
Last modified: August 22, 2016

---

# WordPress 4.0 compatible?

 *  Resolved [kevin](https://wordpress.org/support/users/k-win/)
 * (@k-win)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/wordpress-40-compatible-2/)
 * 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://wordpress.org/plugins/category-featured-images/](https://wordpress.org/plugins/category-featured-images/)

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

 *  Plugin Author [Mat](https://wordpress.org/support/users/blocknotes/)
 * (@blocknotes)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/wordpress-40-compatible-2/#post-5432286)
 * Yes, it works on WordPress 4.0
    My website has WP 4.0 and my plugin is active:
   [http://blocknot.es/](http://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](https://wordpress.org/support/users/k-win/)
 * (@k-win)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/wordpress-40-compatible-2/#post-5432353)
 * 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 [Mat](https://wordpress.org/support/users/blocknotes/)
 * (@blocknotes)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/wordpress-40-compatible-2/#post-5432368)
 * 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](https://wordpress.org/support/users/k-win/)
 * (@k-win)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/wordpress-40-compatible-2/#post-5432369)
 * Got it working now but just within a single post. Can i use it on the main page?
 *  Plugin Author [Mat](https://wordpress.org/support/users/blocknotes/)
 * (@blocknotes)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/wordpress-40-compatible-2/#post-5432413)
 * 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](https://wordpress.org/support/users/k-win/)
 * (@k-win)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/wordpress-40-compatible-2/#post-5432434)
 * 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.

 * ![](https://ps.w.org/category-featured-images/assets/icon-256x256.png?rev=1007316)
 * [Category Featured Images](https://wordpress.org/plugins/category-featured-images/)
 * [Support Threads](https://wordpress.org/support/plugin/category-featured-images/)
 * [Active Topics](https://wordpress.org/support/plugin/category-featured-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/category-featured-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/category-featured-images/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [kevin](https://wordpress.org/support/users/k-win/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/wordpress-40-compatible-2/#post-5432434)
 * Status: resolved