<?php
$args = array();
$categories = get_categories( $args );
foreach ($categories as $category) {
$posts = get_posts(array('category' => $category->term_id, 'posts_per_page' => '150')); ?>
<a href="<?php echo get_category_link($category->term_id); ?>" target="_blank" ><h2><?php echo $category->name; ?></h2></a>
<ol>
<?php foreach ($posts as $post) { ?>
<li><a href="<?php echo get_permalink($post->ID); ?>" target="_blank"><span><?php echo $post->post_title; ?></span></a></li>
<?php } ?>
</ul>
<?php } ?>
var critical = require('critical');
critical.generate({
// Inline the generated critical-path CSS
// - true generates HTML
// - false generates CSS
inline: true,
// Your base directory
base: '/var/www/www1/',
// HTML source
html: '<html>...</html>',
// HTML source file
src: 'index.html',
// Your CSS Files (optional)
css: ['/var/www/www1/css/fonts.css',
'/var/www/www1/css/swipper.min.css',
'/var/www/www1/css/youtube-player.css',
'/var/www/www1/css/style.css'],
// Viewport width
width: 1900,
// Viewport height
height: 1200,
// Target for final HTML output.
// use some CSS file when the inline option is not set
dest: 'index-critical.html',
// Minify critical-path CSS when inlining
minify: true,
// Extract inlined styles from referenced stylesheets
extract: true,
// Complete Timeout for Operation
timeout: 30000,
// Prefix for asset directory
pathPrefix: '/MySubfolderDocrot',
// ignore CSS rules
ignore: ['font-face'],
// overwrite default options
ignoreOptions: {}
});
Скорее всего проблема в теме, не оптимально написана, плюс еще и ютуб для каждого ролика подгружает javascript по полмегабайта.
Даже не знаю, что посоветовать. Почистите базу, phpmyadmin у Вас же есть?
Вот запрос выполните, только вначале бекап сделайте, или хостинг автоматом его делает?