Uname:Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64

Base Dir : /home/nobi37te/public_html

User : nobi37te


403WebShell
403Webshell
Server IP : 172.67.134.116  /  Your IP : 216.73.216.226
Web Server : Apache
System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User : nobi37te ( 1003)
PHP Version : 8.2.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/nobi37te/public_html/wp-content/themes/buddyboss-theme/template-parts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/nobi37te/public_html/wp-content/themes/buddyboss-theme/template-parts/related-posts.php
<?php
$related_posts = buddyboss_theme_get_option( 'blog_related_switch' );
?>

<?php
if ( is_singular( 'post' ) && ! is_related_posts() && ! empty( $related_posts ) ) :
	$posts_array = buddyboss_theme()->related_posts_helper()->get_related_posts();
	if ( is_array( $posts_array ) && count( $posts_array ) > 0 ): ?>
		<div class="post-related-posts">
			<h3><?php _e( 'Related Articles', 'buddyboss-theme' ); ?></h3>
			<div class="post-grid bb-grid">
				<?php
				global $post, $is_related_posts;

				$posts_array      = wp_list_pluck( $posts_array, 'ID' );
				$args             = array(
					'post_type'           => 'post',
					'post__in'            => $posts_array,
					'post__not_in'        => array( $post->ID ),
					'orderby'             => 'post__in',
					'order'               => 'ASC',
					'ignore_sticky_posts' => true,
				);
				$post_query       = new WP_Query( $args );
				$is_related_posts = true;

				// The Loop.
				if ( $post_query->have_posts() ) {
					while ( $post_query->have_posts() ) {
						$post_query->the_post();
						get_template_part( 'template-parts/content', 'related-posts' );
					}
					/* Restore original Post Data */
					wp_reset_postdata();
				}
				$is_related_posts = false;
				?>
			</div>
		</div><!--.post-related-posts-->
	<?php endif;
endif; ?>

Youez - 2016 - github.com/yon3zu
LinuXploit