post displayed before grid

Viewing 5 posts - 1 through 5 (of 5 total)
  • #14300
    Myleene
    Participant

    When i set to display 1 post before the grid in the blog section (pinboard theme dashboard/appearance/general), search result also display 1 post before the grid of result !!

    How to set to 0 post to display for search and keep 1 pst to display on blog page ?

    #14368
    Daniel Tara
    Keymaster

    In functions.php find the function pinboard_post_is_full_width() and add this line right at the beginning:

    if( is_search() ) return false;
    #14422
    Myleene
    Participant

    Thanks for help (and some ass liking – thanks for this wonderful theme !).

    hmmmm
    My search result page is messed up. Fist thumbnail is displayed above the “1 post before grid” thumbnail.
    Like this <- example of search with term "code" (new window).
    What should i do to bring back default search behaviour ? I tried to delete/reinstall theme but this have any fx. I also tried to deleted and recreate the post displayed above but without fx too.

    1. I'm pretty sure your fix submitted here is not responsible of this mess up.
    2. i tried your fix, seems not to work (but i should wait before speak, while my search feature have strange behaviour right now).

    #14692
    Myleene
    Participant

    To avoid the display problem, i wait for a new pinboard database mysql.
    I now have move to another server and fresh install of wordpress and pinboard.

    I changed
    function pinboard_post_is_full_width() {
    global $pinboard_page_template;
    if( ( 'full-width' != pinboard_get_option( 'layout' ) && 'template-blog-full-width.php' != $pinboard_page_template && 'template-blog-four-col.php' != $pinboard_page_template && ! is_category( pinboard_get_option( 'portfolio_cat' ) ) && ! ( is_category() && cat_is_ancestor_of( pinboard_get_option( 'portfolio_cat' ), get_queried_object() ) ) ) || pinboard_is_teaser() )
    return false;
    return true;
    }
    endif;

    to
    function pinboard_post_is_full_width() {
    global $pinboard_page_template;
    if( is_search() ) return false;
    if( ( 'full-width' != pinboard_get_option( 'layout' ) && 'template-blog-full-width.php' != $pinboard_page_template && 'template-blog-four-col.php' != $pinboard_page_template && ! is_category( pinboard_get_option( 'portfolio_cat' ) ) && ! ( is_category() && cat_is_ancestor_of( pinboard_get_option( 'portfolio_cat' ), get_queried_object() ) ) ) || pinboard_is_teaser() )
    return false;
    return true;
    }
    endif;

    This don’t works and still display 1 post before grid

    #15581
    Myleene
    Participant

    the rush of 1.08 bug seems to be far away, there are less posts every days, i try to bump this one…

    any idea daniel ?

    • This reply was modified 12 years, 1 month ago by Myleene.
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.