See the Pen fixed menu after scroll 100 px || how to do that with jquery by sknetking (@sknetking) on CodePen.
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