/** * Projects per page * Set to display 8 projects per page * @param array $query posts query * @return array the modified posts query * @since 1.0.0 */ function woo_projects_per_page($query) { if (is_admin() || !$query->is_main_query()) { return; } if (is_projects_archive()) { // Display only 1 post for the original blog archive $query->set('posts_per_page', 12); return; } }
/** * is_projects - Returns true if on a page which uses WooThemes Projects templates * * @access public * @return bool */ function is_projects() { return is_projects_archive() || is_project_category() || is_project() ? true : false; }
/** * Projects archive title * @return void */ function woo_projects_archive_title() { if (is_projects_archive()) { ?> <div class="archive-header content-container-fullwidth"> <h1 class="page-title"><?php projects_page_title(); ?> </h1> </div> <?php } }