What is content.php file that is needed for Jetpack infinite scroll plugin?

There is no standard for a content.php in WordPress, that’s why you cannot find in the Codex. Some themes use it to render the post content. So instead of … while ( have_posts() ) { the_post(); ?><li <?php post_class(); ?>> <?php the_title( ‘<h2><a href=”‘ . get_permalink() . ‘”>’, ‘</a></h2>’ ); the_excerpt(); wp_link_pages(); ?></li> <?php } … Read more

Isotope with Infinite Scroll

Usually isotope allows appending new items and then just re-layout the masonry again: Somewhere in your JS file you should put the elements you want to append into a variable, e.g. new_elements jQuery(‘.grid’).append(new_elements) .isotope(‘appended’, new_elements) .imagesLoaded( function() { jQuery(‘.grid’).istotope(‘layout’); }); Source: http://isotope.metafizzy.co/methods.html The solution Thanks to @vajrasar for the final touches. When you echo the … Read more

API for Post Stats for Self-Hosted WordPress using JetPack [closed]

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.wordpress.org/browser/jetpack/tags/2.5/modules/widgets/top-posts.php#L223

How can I remove the new stats message? [closed]

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

Implications of changing wordpress.com associated with Jetpack [closed]

Your stats and subscribers are stored on WordPress.com, and associated to your site URL. The WordPress.com account used to connect Jetpack to WordPress.com doesn’t matter. If you disconnect Jetpack from WordPress.com and then reconnect with another WordPress.com account, all the data associated to that site URL will be back in your dashboard. You won’t lose … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)