Thread Starter
polhf
(@polhf)
sorry i spelled it wrong
screenshots:
Code in Theme
Code in theme
Post with shortcode
post with shortcode
Media setting
media setting
post
-
This reply was modified 6 years, 2 months ago by polhf.
Thread Starter
polhf
(@polhf)
hi
in Setting>Media
Custom taxonomy slug : media_category
add_filter( 'su/get_gallery_slides_query', function( $query, $source, $args ) {
if ( 'media_category' === $source['tax'] ) {
$query['post_mime_type'] = 'image/jpeg,image/gif,image/jpg,image/png';
$query['post_type'] = 'attachment';
$query['post_status'] = 'inherit';
}
return $query;
}, 10, 3 );
Thread Starter
polhf
(@polhf)
Hi Vladimir,
i have readed the following article and i added the code in my theme. But it still not running.
Thread Starter
polhf
(@polhf)
would be great to hear from you