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.
Solved!
I think I have not explained well. Look at the attached image: https://ibb.co/GHs4FqD
The problem is that I don’t want to use Single post bg featured image, I just want to use Featured Image and the audio, but if you use an audio, featured image disappear instead audio.
The fact is that I need to show featured image with caption and audio in the same post.
I tried that code, and it worked with theme templates, but I use customized custom cloud library. How can I do it?
Sorry for my insistence, but I think you must be fix this in text update.
Attached examples of what I need to achieve.
I need to show post audio and featured image with caption, is not possible? Do you plan
to fix this?
We can’t post images without the font of who take the photo, we are a public means of communications, and we are not aloud to use images without captions.
Any solution for this? Audio player and featured image with caption en the posts?
Thanks.
But it’s possible to show it in front page? I see that template recognize de audio mp3 url, but in front page it doesn’t appear, it’s like it’s hide. I haven’t used featured audio field and audio appear in post template.
Look at the attached image: https://ibb.co/64t2T0Y
Hi Simion C. Then is so easy, you make me found css that you missing.
I just add this css code and it worked like a charm.
.tdb_mobile_horiz_menu.tdb-horiz-menu-singleline {
overflow-y: scroll !Important;
}
Hi Calin,
Mobile version with Chrome inspector:
http://www.filedropper.com/mobileversioninchromedesktopinspector
Iphone version:
http://www.filedropper.com/iphone
In mobile slide is not fluid, stops if you haven’t got your finger on the screen,
if you try the same in desktop is the way it has to work, like the websites I sent to you, all have the same functionality. I think is something in javascript, but I’m not sure what it is.
If you try any of this websites in your mobile and you compare them with newspaper theme, you will see what I mean:
elconfidencial.com
menswearstyle.com
aplesfera.com
hola.com
vozpopuli.com
guineenews.org
All do the same, if you slide menu continues sliding even if you don’t have the finger on the screen (In desktop works properly). That’s why I saw that something is not working perfect, I think your theme is the best, and you want it to remain the best 🙂 .
If you try with inspector in chrome in mobile size it works ok, but if you slide in mobile it doesn’t work properly. I’m sure is some issue.
Sorry Calin, but you have this option in your theme. I add same menu with your new header builder (Mobile horizontal menu). The problem is that the menu is not fluid. I doesn’t slide well.
Hi. Yes, when I disabled plugin (Events Schedule – WordPress Events Calendar) it works. Do you know how can I fixed this?
I’ve just discovered that this is more appreciable when I activate Speed Booster plugin.
-
This reply was modified 7 years by
giwalola.
And how to avoid this problem?
First web loads with wrong color and logo, and after it loads ok. This doesn’t happens in your theme demos. Any solution?
https://i.imgur.com/IdkGXuL.jpg
https://i.imgur.com/nxvdb3Z.jpg
Thanks
Ok, thanks Bogdan.
Hi Bogdan,
the problem is that my previous theme didn’t have subtitle, it only had excerpts. Now the place where I put my excerpts is the same place of your subtitle.
What I need is to show my old excerpts in the same plase of your subtitle.
Ok, I will try. It will be nice if you implement this. I think will make your website more useful for multiplatform Busines, like us, we are a radio station, and we make posts with vĂdeos and audios.
Audio format with an Ă udio icon will be cool, and useful for many people for shure.
Thanks.
Oks,
and it’s possible to activate native posts formats of wordpress?
I made I prepurchase question before buy the theme, this was your answer, and now you tell me that you can’t help me…:
“Yes, we will be able to help with the modification as it is a simple call for a png file. You simply change the png to your own play icon. We will point you in the right direction, yes.
Thank you! Bogdan B”