Digital experiences for all disciplines
Forum Replies Created
-
-
same result in Cardinal 2.41
Yes, same issue with parent theme
child theme has
comments.php
functions.php
single-event.php
single-location.php
style.cssIn functions.php I’m using this code that I previously used with Dante.
// Show custom post types on archives add_action( 'pre_get_posts', 'add_my_post_types_to_query' ); function add_my_post_types_to_query( $query ) { if ( !is_admin() && is_archive() && $query->is_main_query() ) $query->set( 'post_type', array( 'post', 'event', 'testimonial', 'portfolio', 'team', 'galleries') ); return $query; } // Show custom post types on archives add_filter( 'getarchives_where' , 'pdc_getarchives_where_filter' , 10 , 2 ); function pdc_getarchives_where_filter( $where , $r ) { if ( !is_admin () ) $args = array( 'public' => true , '_builtin' => false ); $output = 'names'; $operator = 'and'; $post_types = get_post_types( $args , $output , $operator ); $post_types = array_merge( $post_types , array( 'post', 'event', 'testimonial', 'portfolio', 'team', 'galleries') ); $post_types = "'" . implode( "' , '" , $post_types ) . "'"; return str_replace( "post_type = 'post'" , "post_type IN ( $post_types )" , $where ); }
That plugin conflicts with another that’s critical for the site.
I can’t find where the team post type is registered as in this file in Dante:
dante/swift-framework/custom-post-types/team-type.phpCan you point me to the correct file?
—-
Any solution available for the team listing layout
http://jameswalkermusic.com/eventlist/performers/
to be identical to the archive listing?
http://jameswalkermusic.com/2015/What plugin?
January 15, 2015 at 6:58 pm in reply to: search results pick up column breaks of portfolio posts #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 14, 2015 at 6:12 pm in reply to: search results pick up column breaks of portfolio posts #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 14, 2015 at 3:16 am in reply to: search results pick up column breaks of portfolio posts #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.
I want the widget to list 3 comments.
When I use “post_author__not_in” it does delete the comments of the post author, but it doesn’t replace those comments with new ones not by the post author.January 13, 2015 at 7:16 pm in reply to: search results pick up column breaks of portfolio posts #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 12, 2015 at 8:39 pm in reply to: search results pick up column breaks of portfolio posts #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 11, 2015 at 11:07 pm in reply to: search results pick up column breaks of portfolio posts #140712these are excerpts calculated from the post, not text in specific excerpt fields.
It doesn’t replace “not_in” comments with new ones. Number in widget 3, 2 were by post author, only left 1.
I’m hoping for each update, you’ll post (at a minimum) the list of files that changed. Best result would be what changed in each file.
You did that for http://dante.swiftideas.net/changelog/#v254
I don’t want the recent comments widget to display any comments made by the post author.
-