get( 'Version' ); $version_string = is_string( $theme_version ) ? $theme_version : false; wp_register_style( 'bug_blog-style', get_template_directory_uri() . '/style.css', array(), $version_string ); // Enqueue theme stylesheet. wp_enqueue_style( 'bug_blog-style' ); } endif; add_action( 'wp_enqueue_scripts', 'bug_blog_styles' ); add_action('admin_notices', 'admin_notices_bug_blog'); function admin_notices_bug_blog() { ob_start(); if (!is_plugin_active('post-grid/post-grid.php')) : ?>

Combo Blocks plugin is required for Bug Blog Theme. Search and install ', 'bug-blog'), 'https://wordpress.org/plugins/post-grid/', admin_url() . 'plugin-install.php?s=Combo+Blocks+pickplugins&tab=search&type=term') ?>

taxonomy; $terms = $term->term_id; $tax_query[] = array( 'taxonomy' => $taxonomy, 'field' => 'id', 'terms' => $terms, ); $query_args['tax_query'] = $tax_query; } /* ################################ Author pages ######################################*/ if (is_author()) { $author = get_queried_object(); $author_id = isset($author->ID) ? $author->ID : ''; if (!empty($author_id)) $query_args['author'] = $author->ID; } /* ################################ Search pages ######################################*/ if (is_search()) { $keyword = get_search_query(); $query_args['s'] = $keyword; } if (is_year()) { $archive_year = get_the_date('Y'); $query_args['date_query'] = array('year' => $archive_year); } if (is_month()) { $archive_year = get_the_date('Y'); $archive_month = get_the_date('m'); $query_args['date_query'] = array('year' => $archive_year, 'month' => $archive_month); } if (is_day()) { $archive_year = get_the_date('Y'); $archive_month = get_the_date('m'); $archive_day = get_the_date('d'); $query_args['date_query'] = array('year' => $archive_year, 'month' => $archive_month, 'day' => $archive_day); } //var_dump($query_args); return $query_args; }