23

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 ...


12

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 ...


11

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 just call: if( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'contact-form' ) ) {} Or at least, you will once the next version releases, and the user has ...


9

The method in the link provided by @TracyRotton seems not to be working since Jetpack 2.0 and WordPress 3.4.2. Even replicating all database fields, it doesn't act as connected. As the OP question is about syncing a development and a production environments, maybe it is not possible. I haven't tested in-depth which modules work and which not, but Jetpack ...


8

There is a Jetpack widget called Top Posts and Pages (Jetpack) If you check out the [source code][2] for this widget, you can see that it's using the function stats_get_csv() to retrieve the stats: $post_view_posts = stats_get_csv( 'postviews', array( 'days' => 2, 'limit' => 10 ) ); If you want to generate your custom most popular list, you can use ...


7

It is possible to trick JetPack by copying the database field values from an activated install into your local install. On an install (remote) with JetPack connected search the wp_options table for option_name fields beginning with jetpack_, such as: jetpack_activated jetpack_options jetpack_nonce_{random_string} jetpack_active_modules Copy these fields ...


7

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 ...


6

I took a look at the WordPress app for Windows 8. It looks as though it is strictly built for WordPress.com, not self-hosted blogs. The apps available for Android, iOS, and Windows Phone on the other hand actually support both self-hosted installations and WordPress.com. Even though you integrated some WordPress.com services into your blog via JetPack, it ...


5

You may not have enough processes running. To test, try creating a file sleeper.php: <?php sleep(5); echo "Working fine\n"; And then run this from the cli: curl -m 6 http://example.com/sleeper.php & curl -m 6 http://example.com/sleeper.php & wait If there is only one process it will print out something like this: Working fine curl: (28) ...


5

I know this is an older post, but I found this site when searching for an answer, then found the real answer somewhere else, so I thought i would share it for anyone else having a similar issue. I created 2 Custom Post-Types and wanted the Share buttons in Jetpack to show up. I thought it would probably be a code in the functions.php file, as that's where ...


5

Checking for the option value jetpack_active_modules. Searching for photon in wp_options is how I found the option_name. The following prints the option as an admin notice: add_action( 'admin_notices', 'wpse_75103_active_jetpack_modules' ); function wpse_75103_active_jetpack_modules() { if( !current_user_can( 'delete_users' ) ) return; $...


5

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).


4

Inspired by brasofilo's latest solution, there's even an easier way, just open jetpack.php, search for /** * Is Jetpack active? */ public static function is_active() { return (bool) Jetpack_Data::get_access_token( JETPACK_MASTER_USER ); } and replace with this: /** * Is Jetpack active? */ public static function is_active() { return true; } Seems ...


4

The JetPack reply box is displayed as an iFrame, so you can't change the style of that section of the page (this prevents cross site scripting, which can be used nefariously). To see where the iFrame begins, take a look at the source code of a page with the comment feature. You'll see something like with "iframe src="http://jetpack.wordpress.com/jetpack-...


4

You could probably just buffer the output from comments_popup_link in a separate function. function get_comments_popup_link( $zero = false, $one = false, $more = false, $css_class = '', $none = false ) { ob_start(); comments_popup_link( $zero, $one, $more, $css_class, $none ); return ob_get_clean(); }


4

The next level up would be an inline style in the head using a hook in a dedicated plugin or theme functions.php: function add_admin_css(){ ?><style>.gotonewdash {display: none;}</style><?php } add_action( 'admin_head','add_admin_css'); Next level up after that would be an admin.css in a plugin with is_admin() and wp_enqueue_style


4

When you sign in, You can see tiny site stats chart(displayed in above screenshot) in your toolbar called a Sparkline. The number in Sparkline represents the highest number of visitors visited in 48 hours of day. You can find more information in wordpress.com Stats Support. I have copy pasted the content below from this link so that it will not affect ...


4

Replace the above mytheme_render_infinite_scroll function with this: function mytheme_render_infinite_scroll() { while ( have_posts() ) : the_post(); if ('mytheme_portfolio' == get_post_type()) : get_template_part( 'content', 'archive-portfolio' ); else : get_template_part( 'content', get_post_format() ); ...


4

Probably through Jetpack, yet I'm not sure Looking at your site now I can say that those open graph tags are from Jetpack Plugin. If there is no image available in the post , Jetpack adds site-icon/favicon as the default one. We can control output of tags using filters jetpack_open_graph_tags jetpack_images_get_images jetpack_open_graph_image_default ...


4

Even if the CDN images are cached "forever", I would not recommend deleting them from your upload folder. You might later decide to deactivate JetPack because: you want to use another CDN and you only use JetPack for the Photon service. it somehow becomes incompatible to your later setup or because of possible temporary bugs in JetPack. Not all of ...


4

Edit the functions.php in your active theme folder. For me it is /wp-content/themes/twentytwelve/functions.php. Add this line to the end of the file: add_filter( 'jetpack_sso_default_to_sso_login', '__return_false' );


4

If I'm not mistaken, this could be as simple as add_filter('get_the_excerpt', 'latex_markup'); if the Latex markup isn't removed by another filter before that (it shouldn't, I believe). latex_markup is the function jetpack adds to the list of filters on the_content. It might get interesting when your latex code is at the edge of the excerpt and parts of it ...


3

You can't "optimize" Jetpack. Look at the URL; it's served from wordpress.com. You get what they offer from their servers.


3

This part comes from the function comment_form() which is called by your theme, probably in comments.php: 'comment_notes_after' => '<p class="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s' ), ' <code>' . allowed_tags() . '</code&...


3

If you want full Jetpack functionality, your development environment will need to be publicly queryable. You can set this up by making your dev address a subdomain, e.g. sandbox.mysite.com, setting that DNS record to point to the IP address where your development server is located, and possibly configuring your router/firewall to allow port 80 requests ...


3

You only need one account, however I often create a new account for client work. WordPress.com allow accounts without blogs on WP.com which is normally what I do if someone else may possibly need access to the account.


3

Tiled galleries have been proprietary feature of wordpress.com, but later also released as Jetpack feature since version 2.1 of it.


3

You need either a content.php or content-<post format>.php OR use a render: add_theme_support( 'infinite-scroll', array( 'container' => 'content', 'footer' => false, 'render' => 'render_function', 'wrapper' => false ) ); function render_function() { get_template_part('loop'); } This implies you have a loop.php.


3

Go to Settings > Sharing in your dashboard Sroll down until the "Button Style" option. Choose "Official Buttons". The Facebook Share button has now changed into a Facebook Like Button. Save your changes, and you'll be good to go! If you want to add a Facebook Share button next to the Like button, you can use the "Add a new service" option: In "Service ...


3

There is indeed a Stats API that will allow you to access stats from a WordPress.com or a Jetpack site. You can read more about it here: http://stats.wordpress.com/csv.php http://phoxis.org/2011/04/24/wordpress-com-stats-api/ http://wpgr.org/2013/03/02/rendering-jetpack-stats/ Jetpack uses this API to populate the Top Posts widget: http://plugins.trac....


Only top voted, non community-wiki answers of a minimum length are eligible