Post Per Page For Portfolio

Yes “posts_per_page” can change the number of posts shown. Where can you add it to your code? You can add this parameter to your $args variable. To add it to your $args variable you can do this: $args = array( ‘post_type’ => ‘portfolio’, ‘posts_per_page’ => 12 ); “12” is the number of posts per page … Read more

Comment Authors of Post On Front Page

Google will reveal all, if you know what your looking for. You can get all comment authors by using the get_comments() function. In fact the first example listed there will exactly what you want. <?php $comments = get_comments(‘post_id=15’); foreach($comments as $comment) : echo($comment->comment_author); endforeach; ?>

Get results from the main wp_query

It looks like you’re calling preparePDF( $wp_query ) inside your callback, but $wp_query isn’t defined and the global $wp_query shouldn’t be accessible there without global $wp_query. Try instead preparePDF( $query ) and use wp_reset_postsdata() to restore the global $post object. Another important thing is that you must run your preparePDF() function after WP_Query has fetched … Read more

Blog styling in SASS

Well what is part of the blog and what belongs to the rest of the site will probably differ so it is hard to split. E.g. is header and footer the same? Anything else that is shared? Anyway, here are two options: 1.Separate instances If the blog and the rest of the site look totally … Read more