Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
deep16
tagDiv Member

if (is_single()) {
global $post;

// facebook sharing fix for videos, we add the custom meta data
if (has_post_thumbnail($post->ID)) {
$td_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );
if (!empty($td_image[0])) {
echo '<meta property="og:image" content="' . $td_image[0] . '" />';
}
}

this is the code

  • This reply was modified 7 years by deep16.
  • This reply was modified 7 years by deep16.
  • This reply was modified 7 years by deep16.
deep16
tagDiv Member

Hello Bogdan B,

As i mention, i already tried disabling all the plugins & test the site & see the same 100% CPU Usage & when i activated another theme i notice everything working fine afterwards. so this is the theme problem.

deep16
tagDiv Member

I didn’t understand above steps much. I have already installed WP Super Cache, Cloudflare & Jetpack but my CPU usage is 100% most of the time even there is only one visitor to the website. I tried disabling all the plugins at one but still, see the same 100% CPU usage problem & then I change the theme for a minute & everything seems in control afterwards. can anyone suggest what can cause this in the theme?

Viewing 3 posts - 1 through 3 (of 3 total)