getJSON not fetching new data

getJSON not fetching new data
0

#1

Hello,
I’m working on the quote generator and am having some problems with my getJSON requests - they seem to be returning the same value every time through CodePen but different ones with my browser. Everything seems to be working correctly with it, but for the fact the same quote is returned each time… Any help you be appreciated.

$(document).ready(function () {
    $("#quoteButton").click(function () {
        jQuery.getJSON("https://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1&callback=", function (a) {
            quoteText.innerHTML = (a[0].content);
            authorName.innerHTML = (a[0].title);
        });
    });
});

#2