/** * Remove Yoast Json. */ function bybe_remove_yoast_json($data){ $data = array(); return $data; } add_filter('wpseo_json_ld_output', 'bybe_remove_yoast_json', 10, 1); /** * Remove Yoast Json. */ /** * crédito en foto. */ add_filter( 'post_thumbnail_html', 'custom_add_post_thumbnail_caption',10,5 ); function custom_add_post_thumbnail_caption($html, $post_id, $post_thumbnail_id, $size, $attr) { if( $html == '' || ! is_single() ) { return $html; } else { $out = ''; $thumbnail_image = get_posts(array('p' => $post_thumbnail_id, 'post_type' => 'attachment')); if ($thumbnail_image && isset($thumbnail_image[0])) { $image = wp_get_attachment_image_src($post_thumbnail_id, $size); if($thumbnail_image[0]->post_excerpt) $out .= '
'; $out .= $html; if($thumbnail_image[0]->post_excerpt) $out .= '

'.$thumbnail_image[0]->post_excerpt.'

'; } return $out; } } /** * final crédito en foto. */ Embarcación | Noticias | 2 marzo, 2021 | Periodismo en Línea