PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
themes
/
rehub
/
inc
/
parts
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> <?php $base_post = $post; global $post; $relatives = (rehub_option('rehub_enable_tag_relative') == '1') ? get_the_terms($post->ID, 'blog_tag') : get_the_terms($post->ID, 'blog_category'); if (!empty($relatives)) { $relative_id = $relatives[0]->term_id; foreach($relatives as $individual_relative) $relative_ids[] = $individual_relative->term_id; $args = array( 'post__not_in' => array($post->ID), 'posts_per_page' => 3, 'ignore_sticky_posts' => 1 ); if (rehub_option('rehub_enable_tag_relative') == '1') { $args['tax_query'] = array ( array( 'taxonomy' => 'blog_tag', 'field' => 'term_id', 'terms' => array($relative_id), ) ); } else { $args['tax_query'] = array ( array( 'taxonomy' => 'blog_category', 'field' => 'term_id', 'terms' => array($relative_id), ) ); } $my_query = new wp_query( $args ); if( $my_query->have_posts() ) { ?> <div class="related_articles clearfix"> <div class="related_title"> <?php if (rehub_option('rehub_related_text') !='') :?> <?php echo rehub_option('rehub_related_text');?> <?php else :?> <?php _e('Related Articles', 'rehub_framework'); ?> <?php endif;?> </div> <ul> <?php while( $my_query->have_posts() ) { $my_query->the_post();?> <li> <a href="<?php echo get_permalink() ?>" class="rh_related_link_image"> <figure> <?php WPSM_image_resizer::show_static_resized_image(array('lazy'=> true, 'thumb'=> true, 'crop'=> false, 'height'=> 124));?> </figure> </a> <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>" class="rh_related_link"><?php the_title(); ?></a> </li> <?php } echo '</ul></div>'; } } $post = $base_post; wp_reset_query(); ?>
[+]
..
[-] woocolumnpart.php
[edit]
[-] affeggurl.php
[edit]
[-] woogridcompact.php
[edit]
[-] compact_grid.php
[edit]
[-] simplepostlist.php
[edit]
[-] query_type3.php
[edit]
[-] column_grid.php
[edit]
[-] post_share.php
[edit]
[-] branded_banner.php
[edit]
[-] singleofferpart.php
[edit]
[-] featured.php
[edit]
[-] query_type2.php
[edit]
[-] affeggbutton.php
[edit]
[-] pricealertpopup.php
[edit]
[-] query_type1.php
[edit]
[-] woo_slider.php
[edit]
[-] blogrelated.php
[edit]
[-] top_image.php
[edit]
[-] woocompactcarousel.php
[edit]
[-] home_carousel.php
[edit]
[-] multiofferpart.php
[edit]
[-] gallery_slider.php
[edit]
[-] video_featured.php
[edit]
[-] news_ticker.php
[edit]
[-] review_slider.php
[edit]
[-] postlistpart.php
[edit]
[-] pricehistorypopup.php
[edit]
[-] woolistpart.php
[edit]
[-] prevnext.php
[edit]
[-] related_posts.php
[edit]
[-] woogridpart.php
[edit]
[-] woolistmain.php
[edit]