Display content from a specific category

The argument isn’t category, it is cat. Your query fails because you are using an argument that doesn’t exist. $args = array( ‘post_type’ => ‘post’ , ‘orderby’ => ‘date’ , ‘order’ => ‘DESC’ , ‘posts_per_page’ => 6, ‘cat’ => ‘3’, ‘paged’ => get_query_var(‘paged’), ‘post_parent’ => $parent ); $q = new WP_Query($args); if ( $q->have_posts() ) … Read more

ID for posts/blogs page

consider to use: $postspage_id = get_option(‘page_for_posts’); and then change the rspective line in your code to: $leftSidebar = get_post_meta( $postspage_id, ‘_my_meta’, true ); from: http://www.blog.highub.com/cms/wordpress/wordpress-front-page-posts-page-id/

Show Default Editor on Blog Page ( Administration Panel )

In WordPress 4.2 the editor was removed on whichever page was assigned to show Latest Posts for whatever reason. The following function below ( original solution found here by crgeary ) will re-add the editor and remove the notification: You are currently editing the page that shows your latest posts. Here’s some information on the … Read more

Creating custom blog page template the right way

Don’t forget that WordPress was primarily designed to be a blogging CMS, so when it comes to theme development, developers often opt for a non-standard approach in exchange for the potential for more features. Theme developers have three options when they approach this, one of which (#2 below) you mentioned. Directly edit the index.php to … Read more