Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter fredericnicefrench

    (@fredericnicefrench)

    hello
    first thank you sincerely for your help !

    for this gallery the code is all the same than the other but with one filter on type of file :
    post_mime_type=’audio,video’

    After i have read your answer i disable the other rendering gallery (delete line mla_alt_shortcode=gallery type=”rectangular) because for rendering icon audio files and icon video files we dont need a special design . and it s work fine without use for this gallery the other plugin renderer .
    thank’s again .
    Frederic

    Thread Starter fredericnicefrench

    (@fredericnicefrench)

    re,
    i have a probleme with post mime type
    you had removed the post_mime_type=image this good for image type but i have an another gallery the same like this but with :
    post_mime_type=’audio,video’
    size=icon
    mla_caption=”{+title+}”

    when i put this 3 lines in your code the gallery dont work .

    thank you for help.
    FH
    ps code of other gallery :

    [mla_gallery ]
    tax_query="array(
    'relation' => 'AND',
    array(
    'taxonomy' => 'attachment_category',
    'field' => 'slug',
    'terms' => '{+template:({+request:_cat+}|no-term-selected)+}'
    ),
    array(
    'taxonomy' => 'attachment_category',
    'field' => 'slug',
    'terms' => 'prive',
    'operator' => 'NOT IN'
    )
    )"
    post_mime_type='audio,video'
    size=icon
    link=file
    columns = 4
    posts_per_page=12
    orderby="date"
    order = "DESC"
    mla_alt_shortcode=gallery
    type="rectangular"
    [/mla_gallery]
    
    <hr>
    
    [mla_gallery ]
    tax_query="array(
    'relation' => 'AND',
    array(
    'taxonomy' => 'attachment_category',
    'field' => 'slug',
    'terms' => '{+template:({+request:_cat+}|no-term-selected)+}'
    ),
    array(
    'taxonomy' => 'attachment_category',
    'field' => 'slug',
    'terms' => 'prive',
    'operator' => 'NOT IN'
    )
    )"
    mla_output='paginate_links,prev_next'
    posts_per_page=12
    orderby="date"
    order = "DESC"
    [/mla_gallery]
    Thread Starter fredericnicefrench

    (@fredericnicefrench)

    hello
    I tested your code , its work .
    thank you for your for quality help .
    have nice day
    F.H

Viewing 3 replies - 1 through 3 (of 3 total)