perickr
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Themes and Templates
In reply to: [Bento] Problems about Ajax Load@satoristudio OK,glad to share.
1. insert code below into function bento_ajax_pagination() in functions.php
$bento_tax_filter = get_post_meta( $post_id, 'bento_filter_taxonomy', true ); if ( $bento_tax_filter && $bento_tax_filter != 'all' ) { $term = get_term( $bento_tax_filter ); $query_args['tax_query'] = array( array( 'taxonomy' => $term->taxonomy, 'field' => 'term_id', 'terms' => $bento_tax_filter, ), ); }
2. change the function bento_post_thumbnail() in theme/bento/includes/template-tags.php.
// Display an optional post thumbnail. function bento_post_thumbnail() { global $post; global $bento_parent_page_id; // Check if it's one of the situations when a thumbnail is not needed, and exit if yes if ( ! has_post_thumbnail() || post_password_required() || is_attachment() || get_post_format( $post->ID ) === 'quote' || //perick add: get_page_template_slug( $bento_parent_page_id ) != 'grid.php' ( ! is_page() && get_post_meta( $post->ID, 'bento_hide_thumb', true ) == 'on' && get_page_template_slug( $bento_parent_page_id ) != 'grid.php') || ( is_singular() && get_post_meta( $post->ID, 'bento_activate_header', true ) == 'on' && ( $bento_parent_page_id == $post->ID || is_single() ) ) ) { return; } if ( is_singular() && get_page_template_slug( $bento_parent_page_id ) != 'grid.php' ) { ?> <div class="post-thumbnail"> <?php the_post_thumbnail(); ?> </div> <?php } else { ?> <div class="post-thumbnail"> <a class="post-thumbnail" href="<?php the_permalink(); ?>"> <?php the_post_thumbnail( 'post-thumbnail', array( 'alt' => get_the_title() ) ); ?> </a> </div> <?php } }
Forum: Themes and Templates
In reply to: [Bento] Problems about Ajax LoadI have fix it myself.they are bugs of functions.php and tampalete-tags.php.
please fix it next version.thank you.
Viewing 2 replies - 1 through 2 (of 2 total)