Support » Plugin: Jetpack - WP Security, Backup, Speed, & Growth » Compatiblity with WP 3.8 RC2 / TwentyFourteen

  • Resolved Nick Bohle

    (@nickbohle)


    Hi all,

    I have just installed the newest version of Jetpack (2.7) on a site with WordPress 3.8 RC2 and the standard theme Twenty Fourteen installed.

    Unfortunately, the featured content area (slider, grid) does not work with Jetpack activated.

    With Jetpack deactivated, the selected/tagged posts are featured correctly.

    Regards,
    Nick

    http://wordpress.org/plugins/jetpack/

Viewing 10 replies - 31 through 40 (of 40 total)
  • Thread Starter Nick Bohle

    (@nickbohle)

    @thepete… strange, the problem was fixed with Jetpack 2.8… Regards, Nick

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    @thepete As Nick mentioned, the problem was fixed a while ago. If you still experience issues, could you please start your own thread, and let us know your site URL so we can take a look?
    http://wordpress.org/support/plugin/jetpack#postform

    Thank you!

    I’m having the problem with it on petesofficial.com. I had deactivated the plugin yesterday so I could continue working on the site. When I reactivated the plugin today, everything was fine–until I linked Jetpack with my wordpress.com account again. Then the posts disappeared from the main feed. I’ll leave the plugin connected as long as I can but I’ve got to keep working on the site, so I may need to deactivate it later today.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Your Featured Content area seems properly displayed on my end:
    http://i.wpne.ws/UZpd

    Sorry, I got my wires crossed about this thread. I’m having the opposite problem. My featured posts don’t appear along with the non-featured blog posts in the regular content area. That’s the issue. Sorry, is there another thread that solves this problem? I did a search and all I was able to find was this thread.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    That’s indeed quite different, and that’s actually the default behaviour with Featured Content.

    You can use code like this one to include Featured Content Posts in the main query as well:
    https://github.com/jeherve/pinkman/blob/1.2.3/inc/jetpack.php#L50

    If you have other questions, start a new thread in the Jetpack support forums!

    Do you mean that it’s the default behavior with Featured Content when the Jetpack plugin is activated? Because when I deactivate the Jetpack plugin, WP will display Featured Content in both places. Jetpack is almost too enveloping a plugin. It does a lot a like but a few things I don’t (that I can’t turn off). I’ll check out the code you linked to though and see if I can implement it. Thanks so much for your replies!

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Do you mean that it’s the default behavior with Featured Content when the Jetpack plugin is activated?

    This is how Featured Content works, whether you use Jetpack or not.

    In 2014, Featured Content posts are excluded from the main content area through this function:
    https://core.trac.wordpress.org/browser/trunk/src/wp-content/themes/twentyfourteen/inc/featured-content.php#L225

    In Jetpack, they are excluded here:
    https://github.com/Automattic/jetpack/blob/2.9.2/modules/theme-tools/featured-content.php#L235

    The code I referred to earlier will turn off this default behaviour.

    Well, I must have done something by accident to change that because if you go to petesofficial.com right now, you’ll see everything in the main content area showing up in the Featured Content area at the top. It’s no big deal though, I actually want this. I just need to decide if I want to use edit Jetpack’s code or find other solutions that won’t exclude FC from the main content area. It’s all good. Thanks again!

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    You shouldn’t need to edit Jetpack’s code. You can paste the code I provided earlier in your theme’s functions.php file, or in a functionality plugin:

    /**
     * Do not exclude the Featured Posts from the main blog query
     */
    function jeherve_add_featured_content_to_blog() {
        remove_action( 'pre_get_posts', array( 'Featured_Content', 'pre_get_posts' ) );
    }
    add_action( 'init', 'jeherve_add_featured_content_to_blog', 31 ); // Immediately after FC hooks in.

    If Featured Content posts already appear in your main content area as well, your theme most likely already includes that function.

Viewing 10 replies - 31 through 40 (of 40 total)
  • The topic ‘Compatiblity with WP 3.8 RC2 / TwentyFourteen’ is closed to new replies.