This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function db_custom_loop_shortcode($atts, $content = null) { | |
global $post; | |
// Set query args | |
$args = array( | |
'post_type' => 'post', | |
'posts_per_page' => '3', | |
'post__not_in' => array( $post->ID ), // don't display current post | |
); | |
// Optional arguments for setting category term relationship on single post |