{"id":13109989,"date":"2020-07-11T22:32:22","date_gmt":"2020-07-11T22:32:22","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/row_filter-filter-on-variable-value\/"},"modified":"2020-07-11T22:42:31","modified_gmt":"2020-07-11T22:42:31","slug":"row_filter-filter-on-variable-value","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/row_filter-filter-on-variable-value\/","title":{"rendered":"row_filter \/ Filter on variable value"},"content":{"rendered":"<p>I am using tablepress for the website of my cycling club to show the (GPS) clubrides schedule.<br \/>\nSee: https:\/\/tourclubduiven.nl\/toerkalender\/<\/p>\n<p>Every ride has the month (e.g &#8220;2020-07&#8221; for July 2020) in the first column.<br \/>\nUsing the row-filter extension I can simply use the &#8216;filter=&#8221;2020-07&#8243;&#8216; phrase to filter just the rides scheduled in July 2020.<\/p>\n<p>Now I want to make this filtering dynamic, based on a global variable (e.g. &#8220;$current_month&#8221; that I want to set in the page header or footer) so that when the page opens the user only sees the rows that match the value in the variable.<\/p>\n<p>Plus the user should be able to change the filter as he\/she likes (using the selection boxes from the column filter extension)<\/p>\n<p>Is there any way to accomplish this?<\/p>\n","protected":false},"template":"","class_list":["post-13109989","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13109989","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":3,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13109989\/revisions"}],"predecessor-version":[{"id":13110002,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13109989\/revisions\/13110002"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13109989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}