Get ‘page’ number with infinite scroll

Grabbing the values Normally you just access the $wp_query object or, in case you did do a custom query like $my_query = new WP_Query();, the $my_query object. From there you can get the $wp_query->numberposts (or better, as non-deprecated: $wp_query->found_posts) for the full amount of posts and $wp_query->posts_per_page for the number of posts per page. Inside … Read more

How to disable Jetpack modules such as Stats?

If you press the “Learn More” button for each Jetpack Module, you will get a “Deactivate” button showing up to the right. There is also a fork call Jetpack Lite http://wordpress.org/extend/plugins/jetpack-lite/ A NOT official “lite” fork of Jetpack plugin containing only Stats and WP.me Shortlinks modules. All other modules removed (files and code).

How to run Jetpack from localhost? [closed]

Add this to your wp-config.php: const JETPACK_DEV_DEBUG = TRUE; This makes it possible to use features on localhost that don’t require a connection to wordpress.com. See the announcement post on jetpack.me for the background. For your own plugins, learn that lesson: Do not rely on working outgoing connections. Respect your users privacy, and explain in … Read more

Jetpack Running Locally [closed]

As of JetPack 2.2.1 there is now a local development/debug mode. http://jetpack.me/2013/03/28/jetpack-dev-mode-release/ use: define (‘JETPACK_DEV_DEBUG’, true); in your wp-config and you should have access to any modules that don’t require a connection to function. Update, since around v3.3 another local development trigger was added via filter instead of define. Latest is now here: http://jetpack.me/support/development-mode/ Development … Read more