| Sc. 0 | ||
| Developer: Sk NetKing | ||
short code for show all post on a page || wordpress show all post by shortcode
  This function is useful for  WordPress developer just copy and paste this code in your functions.php  file and save file. And just put this short code in your widget   [show_posts posts="1" show_cat="true" order="ASC"] function short_code($atts){         ob_start();  //$featured_img_url = get_the_post_thumbnail_url(get_the_ID(),'full');        extract(shortcode_atts(array(       'posts' => 1, 		 'cat'=>'', 		   'show_cat'=>false, 		  'order'=>'DESC', 		   'post_id'=>'' 		       ), $atts)); 	  $args = array(     'post_type' => 'post',     'post_status' => 'publish',     'category_name' => '',     'posts_per_page' => $posts,     'orderby'=>$order ); 			 	 if( empty($post_id))  	 { 		 $post = get_post($post_id); //assuming $id has been initialized         setup_postdata($...
 
 
 
3 Comments
bookmarked!!, I really like your website!
ReplyDeleteeach time i used to read smaller posts which as well
ReplyDeleteclear their motive, and that is also happening
with this post which I am reading here.
You need to be a part of a contest for one of the greatest websites on the web.
ReplyDeleteI most certainly will highly recommend this
website!