{"id":18997397,"date":"2026-08-19T13:31:42","date_gmt":"2026-08-19T13:31:42","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/get-global-js-filter-function\/"},"modified":"2026-08-19T13:31:42","modified_gmt":"2026-08-19T13:31:42","slug":"get-global-js-filter-function","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/get-global-js-filter-function\/","title":{"rendered":"Get global JS filter function"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I would like to create some special pages, with posts already filtered on it. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example :<\/p>\n\n\n\n<ul>\n<li>I have a taxonomy &#8220;Fruit&#8221; with &#8220;apple, orange, pineapple&#8221;<\/li>\n\n\n\n<li>I have a page &#8220;Fruits&#8221; with a YMC Filter that filters articles by fruit : there are buttons on it to filter by fruit <\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">-&gt; I would like to know how is it possible to have a page &#8220;Apple&#8221;, the same as &#8220;Fruits&#8221;, but with &#8220;Apple&#8221; already filtered on it ?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Many thanks<\/p>\n","protected":false},"template":"","class_list":["post-18997397","topic","type-topic","status-publish","hentry","topic-tag-term"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18997397","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18997397\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18997397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}