I think I have not explained well. Look at the attached image: https://ibb.co/GHs4FqD
Hi,
add this code to your functions.php
function get_excerpt_by_id($post_id){
global $post;
$save_post = $post;
$post = get_post($post_id);
$output = get_the_excerpt();
$post = $save_post;
return $output;
}
and change post subtitle code to call excerpt (file is in td-cloud-library>state>single>tdb_state_single.php
$this->post_subtitle = function () {
$dummy_data_array = array(
‘post_subtitle’ => ‘Sample Post Subtitle!’
);
if ( !$this->has_wp_query() ) {
return $dummy_data_array;
}
$post_subtitle_array = array();
$post_subtitle = get_excerpt_by_id($this->get_wp_query()->post->ID);
$post_subtitle_array[‘post_subtitle’] = $post_subtitle;
if ( empty( $post_subtitle ) ) {
if ( tdc_state::is_live_editor_iframe() || tdc_state::is_live_editor_ajax() ) {
return $dummy_data_array;
}
}
return $post_subtitle_array;
};
Hope it helps.
Very very thanks,
i’ve used a script to convert excerpt as shortcode to obtain this but your method are better