Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › search results pick up column breaks of portfolio posts
New Landing › How can we help? › Themeforest Theme Support › Dante › search results pick up column breaks of portfolio posts
- This topic has 12 replies, 3 voices, and was last updated 9 years by laranz – SUPPORT.
-
Posted in: Dante
-
January 10, 2015 at 12:41 am #140536
in search results, portfolio posts retain column shortcodes — i.e. div class one_half
How can we change this to one-column views like other posts?
Attachments:
You must be logged in to view attached files.January 11, 2015 at 10:42 pm #140707Hi,
It comes from the excerpt, did you add the excerpts of those posts like that?
Let us know,
Thanks,
laranz.January 11, 2015 at 11:07 pm #140712these are excerpts calculated from the post, not text in specific excerpt fields.
January 12, 2015 at 2:14 pm #140926Hi,
Does it happen with the parent theme active(without modifications?
Also can you try with all the plugins disabled to discard any plugin conflict.-Rui
January 12, 2015 at 8:39 pm #141039if I’m reading the php correctly —
/includes/sf-post-formats.php
line 685-686
$custom_excerpt doesn’t get converted into $post_excerpt so it will display in line 718January 13, 2015 at 12:55 pm #141162Can you try recommendation above to activate the Dante Parent theme and deactivate all the plugins to try to isolate this issue.
Let us know the result.
-Rui
January 13, 2015 at 7:16 pm #141282with dante 2.7 and no plugins
in portfolio, team and blog posts, custom excerpt isn’t picked upin portfolio posts when one_half shortcode is used, all text inside shortcode is not displaying — what I’d prefer on search results is that the shortcodes that are defining columns would not be used and the text inside shortcodes would be displayed.
January 14, 2015 at 3:16 am #141333in portfolio, team and blog posts, I’m assuming something like this code needs to be added to /includes/sf-post-formats.php at line 686, so that if there are custom excerpts, they are included in the search results. [Same problem exists in Cardinal.]
$custom_excerpt = sf_get_post_meta( $post->ID, ‘sf_custom_excerpt’, true );
$post_excerpt = ”;
if ( $custom_excerpt != ” ) {
$post_excerpt = sf_custom_excerpt( $custom_excerpt, $excerpt_length );
} else {
$post_excerpt = sf_excerpt( $excerpt_length );
}—–
to better clarify second problem, in portfolio posts body copy I’m using layout shortcodes. No custom excerpts. And excerpt field doesn’t appear in Edit post page. No text appears in the search results.When I add Advanced Excerpt plugin (recommended by swift ideas) it’s not ignoring the layout shortcodes, thus the search results are appearing in several columns instead of one column.
January 14, 2015 at 7:29 am #141344This reply has been marked as private.January 14, 2015 at 6:12 pm #141525only team members in search results display columns…
Yes, because I’ve set css to width 100% on the others (one_half, one_third, one_fourth etc).re: Canterbury Choir example
I assume it’s better to use layout shortcodes (one_half, one_fourth) instead of spb_content_elements to create columns to avoid changing bootstrap width settings to get search results to have width of 100%.
Is that what you would do?My concern is how to manage this as my client takes over production of site. I would like to avoid revisiting this every time he tries things in page builder.
——————-
can you try editing the excerpt…
Yes, the excerpt field works. I’d like to use the custom excerpt field throughout and not use excerpt field. My client is frustrated by the amount of meta fields and tabs and needs things to be a bit simpler. The custom excerpt field doesn’t display in search results (portfolio, team, blog).—
I installed wpideJanuary 15, 2015 at 11:02 am #141667Hi,
In that line, instead of this
$post_excerpt = strip_shortcodes(get_the_excerpt());
Try this
$post_excerpt = strip_tags(strip_shortcodes(get_the_excerpt()));
Let us know,
Thanks,
laranz.January 15, 2015 at 6:58 pm #141834strip_tags eliminates tags that I need
At this point, I’d be grateful for code that will include $custom_excerpt in the search results.
January 18, 2015 at 8:44 pm #142229Hi,
You mean, you want custom excerpt for team members instead of the excerpts auto generated by WordPress??
If so you can change that when it gets printed,
$search_item .= '<div class="excerpt">'.$post_excerpt.'</div>';
to
$search_item .= '<div class="excerpt">'.$custom_excerpt.'</div>';
Let us know,
Thanks,
laranz. -
Posted in: Dante
You must be logged in and have valid license to reply to this topic.