Hi arcilli. Welcome to the Hueman forum. You said you cannot use the video format in the sidebar but it appears that you do have a video post in the lower tabs widget in your left sidebar. If you have an audio post with an embedded mp3 it should be displayed in the same manner as you see on the theme demo.
Hi! Thanks for your reply. I want to display the video post in the same manner as a audio. Is it possible?
Also, have you any ideea how to non display audio post in homepage?
I guess I don’t quite understand what it is you’re trying to accomplish. You already have a Vevo video post in your sidebar and on the home page. What do you mean by “I want to display the video post in the same manner as a audio”?
how to non display audio post in homepage
One way would be to add them to a specific category, then use a pre_get_posts() function in a child theme functions.php file to exclude that category on the home page.
Sorry for that. Well, in demo content an audio post is showing like this: http://i.imgur.com/m83XfsI.png
I wanna change something in the theme for configuring video posts to show it in the same manner. Here is how its looking now: http://i.imgur.com/u3BzSui.png
For the category, I added following code to my functions.php, but nothing happens.
function exclude_category( $query ) {
if ( $query->is_home() && $query->is_main_query() ) {
$query->set( 'cat', 'weeks-vibes' );
}
}
add_action( 'pre_get_posts', 'exclude_category' );
Post display: try using the Hueman Posts widget instead of Hueman Dynamic Tabs.
Query: for ‘cat’ you need to use the category ID; to exclude it you need to prefix it with a minus sign:
$query->set( 'cat', '-12' );
So, if category ID is 3000 and the name is weeks-vibes, how it shoud be?
$query->set( 'cat', '-3000' );
Thanks! I solved both problems. Thank a lot!
You’re welcome; glad to help.