Hi there,
You’ll want to take a look at this file:
http://plugins.trac.wordpress.org/browser/jetpack/trunk/modules/widgets/top-posts.php
Note that if you modify the file, your changes will be overwritten the next time that Jetpack is updated.
Thread Starter
Myar
(@myar)
Hi!
Yes, I founded the file already. But I don’t know, what I have to edit.
I have just changed this:
$posts = $post_query->query( array(
‘posts_per_page’ => 1,
‘post_status’ => ‘publish’,
‘post_type’ => array( ‘post’, ‘page’),
‘no_found_rows’ => true,
) );
into:
$posts = $post_query->query( array(
‘posts_per_page’ => 1,
‘post_status’ => ‘publish’,
‘post_type’ => array( ‘post’),
‘no_found_rows’ => true,
) );
But it doesn’t work. The same with the pictures.
Can you help me?
And yes, before I upfate jetpack, I’ll save my changes 😉
Hi Myar,
I don’t know how to fix your code, or it’s actually fixable. However, we’re looking into adding a filter to the widget’s code to allow you and others to manually filter out the posts and pages that you don’t want. I’ll keep you posted on that. Thanks for bringing it to our attention! 🙂
Thread Starter
Myar
(@myar)
Hi,
it’s a pity that I can not exclude pages from the list right now.
Okay, I have to wait for an update.
Another point, eventually as new feature: Maybe you can adjust the sharing option. It would be nice, if the text for twitter is separate fromt he text for facebook. Then we can use hahstags only for twitter, because they look strange on facebook.