Is “Featured Content” in Twenty Fourteen done with a plugin, or is it native in WP4.0?

I found that Twenty Fourteen offers users to have Featured Content on there websites. That’s great, because I had written my own little script for such an occasion. But if the functionality is already there in WP, I might as well use that. However: When looking into Twenty Fourteen’s functions.php to investigate how it works, … Read more

How to tell if Jetpack’s Photon is active?

There are multiple ways to identify if a plugin is active (here’s one) but how can we identify if a specific JetPack component is active, for example Photon? 2 s 2 We just committed a new function to Jetpack Trunk, and it should be enabled in the next release, Jetpack::is_module_active() — http://plugins.trac.wordpress.org/changeset/716884 Then you can … Read more

Slow REST API calls on self-hosted WordPress [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 3 years ago. Improve this question I’m using WordPress REST API to access some posts from an app we’re creating, but the API calls are really slow! … Read more

WP REST API no longer supports filter param, so how do I get posts in a custom taxonomy?

All around the Interwebs I see advice from people who say that when you want to get posts in a custom taxonomy you should use the filter parameter, for example: https://example.com/wp-json/wp/v2/posts?filter[genre]=fiction This seems like a very handy parameter. But in v2 of the WP REST API it just doesn’t work. When I created a WP … Read more

Get ‘page’ number with infinite scroll

I added infinite scroll support of the Jetpack plugin to my own theme using this tutorial: add_theme_support( ‘infinite-scroll’, array( ‘container’ => ‘content’, ‘footer’ => false, ‘render’ => ‘vividflow_infscroll_render’, ‘wrapper’ => ‘post_summaries’, ‘posts_per_page’ => 12, ‘type’ => ‘scroll’ ) ); Now I need something like a counter which increments every time additional posts are loaded. I … Read more

How to run Jetpack from localhost? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 3 years ago. Improve this question I just installed the jetpack plugin on my localhost version of WordPress 4.2.2 however after activating it—when I click on ‘Connect … Read more