Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8444975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:32:18+00:00 2026-06-10T09:32:18+00:00

I am using this media gallery in my site: http://tympanus.net/Development/MultiMediaGallery/ It is working with

  • 0

I am using this media gallery in my site: http://tympanus.net/Development/MultiMediaGallery/
It is working with no problems in my WordPress installation, but I would like to add a drop down to filter the media into separate “galleries”. I thought the best way to do this would be add an additional attribute to the XML called ‘gallery’ and then give each media item the same name. I am trying to get this working and I modified the main mediagallery.js to assign the ‘gallery’ attribute to the id tag (although for some reason assigning all the ids the same, even though the data is parsing correctly when I checked via firebug, I’m currently working on this). Below is some code but my first question is, does this seem like the best way to do this?

This is the drop down and javascript I added to my main page (a WordPress template):

        $(window).load(function() {
            $('.media_wrapper').hide();
  $('#dropdown').change(function() {
   $('.media_wrapper').hide();
$('#' + $(this).val()) && $('.media_wrapper')
.css('display','block');
  });
});

<form>
 <select id="dropdown" name="dropdown">
  <option value="0">Choose</option>
  <option value="sunsets">Sunsets</option>
  <option value="mountains">Mountains</option>
 </select>
</form>  
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T09:32:20+00:00Added an answer on June 10, 2026 at 9:32 am

    I love when I can answer my own questions!

    Anyways, just in case anyone else would like to be able to add a filter to this media gallery – you add an attribute to the xml file, make sure it is in the xsl file and then finally grab the attribute and add it as a class to the li of each media gallery item. Then simply hide and show the li’s with that class and voila you have a gallery filter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using this feed http://feeds.bbci.co.uk/news/rss.xml and want to get all media:thumbnail entries. I.e.
I'm trying to run a mp3 file using android media player. I'm using this
I'm trying to write a drop-in replacement for System.Media.SoundPlayer using the waveOut... API. This
using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
Using this page, http://developer.android.com/sdk/compatibility-library.html , I have installed the Android Support Package, added a
Using this tutorial: http://www.c-sharpcorner.com/uploadfile/UrmimalaPal/creating-a-windows-phone-7-application-consuming-data-using-a-wcf-service/ I have created sample/hello world application on the windows phone
In my app i am using this code to get Image from Gallery and
I'm creating a custom media center wordpress website. I have created my own gallery,
I am using this code to have a simple gallery on the page: <?php
I have built a media gallery for my site. The media gallery contains media

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.