• Resolved Myar

    (@myar)


    Hello,

    I’m using the top posts and pages widget. But I don’t want pages rated. How can I exclude pages from the listing?

    The Widget takes pictures from the post, but I want to change the image into some, that were included by custom fields für the teaser page. How can I change the php code?

    best reagrds
    Myar

    http://wordpress.org/extend/plugins/jetpack/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Richard Archambault

    (@richardmtl)

    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 😉

    Plugin Contributor Richard Archambault

    (@richardmtl)

    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.

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Hi Myar,

    Well, facebook is now using hastags too:

    http://www.wired.com/gadgetlab/2013/06/facebook-introduces-hashtags/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Exlude pages from Top Posts Widget and change the thumbnails’ is closed to new replies.