-
Myleene
ParticipantWhen 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 ?
Daniel Tara
KeymasterIn functions.php find the function
pinboard_post_is_full_width()
and add this line right at the beginning:if( is_search() ) return false;
Myleene
ParticipantThanks 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).Myleene
ParticipantTo 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
You must be logged in to reply to this topic.