javascript - jQuery display wordpress categories by click of category buttons

136

So i'm making reference page where top of the page i have these category buttons:

All | refe 1 | refe 2 | refe 3 | refe 4 | ect..

After buttons i have field that displays all references. I need to do this page so that if you click on category its shows the category and you should be able to click multiple categories, so it need to be on same page.

Top buttons are automated so it will show all the terms automatically and buttons have class of the term. In the display field references has the same class that the button. Can you help me?


Edit:

Here is the code for now (i have only made it so if you click button all it show all and does the animation for the button):

$(document).ready(function(){
    $('.all').on('click', function(){
        $('.hidden-box').toggle();
            $(this).toggleClass("down");
    });

});

People are also looking for solutions to the problem: jquery - insert to mysql from ajax and php

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.