I am working on it and after some time you can add as a plugin in wordpress.
When you install plugin than plugin automatically add new latest news posts in your website.
If you want this plugin than please comment below "Yes we want it".
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($...
0 Comments