• Resolved bhasic

    (@bhasic)


    I can’t get .mp4 video files to display in mla-gallery. I have no idea why they wont display. File attachment pages work normally. My shortcode is:

    [mla_gallery post_parent=all attachment_category="{+template:({+request:term_slug+}|In English)+}" posts_per_page=10 mla_output="paginate_links,prev_next" mla_link_href="{+page_url+}?term_slug={+request:term_slug+}" mla_style=km mla_markup=km]
    
    [mla_gallery post_parent=all orderby=date order=DESC attachment_category="{+template:({+request:term_slug+}|In English)+}" posts_per_page=10 mla_nolink_text="Select a category."]

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for including the text of your shortcodes; very helpful.

    By default, [mla_gallery] selects items with post_mime_type=image. To select video files you need to specify an appropriate MIME type, e.g., post_mime_type=video or post_mime_type=video/mp4. Don’t forget to add that to both of your shortcdodes.

    I am marking this topic resolved, but please update it if you have problems or further questions regarding the above suggestions.

    Thread Starter bhasic

    (@bhasic)

    Thanks, that was quick. I knew there was a simple solution. I just assumed that without setting MIME type, it would display all that WordPress accepts. Maybe this is useful info for someone else anyway.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Mp4 files’ is closed to new replies.