{"id":1291393,"date":"2017-05-31T10:35:27","date_gmt":"2017-05-31T17:35:27","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filtering-list-by-current-month\/"},"modified":"2017-06-02T15:39:41","modified_gmt":"2017-06-02T22:39:41","slug":"filtering-list-by-current-month","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filtering-list-by-current-month\/","title":{"rendered":"Filtering list by current month"},"content":{"rendered":"<p>Hi there,<\/p>\n<p>I&#8217;m using the list loop template (views\/list\/loop.php) to get a list of events (based on the PostPerPage Limit I have set in the settings).<\/p>\n<p>But now, I want to give this list some arguements, to filter this list manually by etc. current month, or post per page limit. The structure is this:<\/p>\n<p><code>  &lt;?php<br \/>\n$current_month = date('M');<br \/>\nquery_posts(array('post_type' =&gt; 'tribe_events', 'posts_per_page' =&gt; 10, 'month' =&gt; $current_month));<br \/>\n?&gt;<br \/>\n&lt;?php  while (have_posts()) : the_post(); ?&gt;<br \/>\n&lt;?php the_title(); ?&gt;<br \/>\n&lt;?php endwhile; ?&gt;<\/code><\/p>\n<p>However, this is not working. Someone has an idea, how to realize this?<\/p>\n<p>Thank you!<\/p>\n","protected":false},"template":"","class_list":["post-1291393","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Filtering list by current month -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filtering-list-by-current-month\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Filtering list by current month -\" \/>\n<meta property=\"og:description\" content=\"Hi there, I&#8217;m using the list loop template (views\/list\/loop.php) to get a list of events (based on the PostPerPage Limit I have set in the settings). But now, I want to give this list some arguements, to filter this list manually by etc. current month, or post per page limit. The structure is this: &lt;?php [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filtering-list-by-current-month\/\" \/>\n<meta property=\"article:modified_time\" content=\"2017-06-02T22:39:41+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filtering-list-by-current-month\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filtering-list-by-current-month\/\",\"name\":\"Filtering list by current month -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-05-31T17:35:27+00:00\",\"dateModified\":\"2017-06-02T22:39:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filtering-list-by-current-month\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filtering-list-by-current-month\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filtering-list-by-current-month\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Filtering list by current month\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Filtering list by current month -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filtering-list-by-current-month\/","og_locale":"en_US","og_type":"article","og_title":"Filtering list by current month -","og_description":"Hi there, I&#8217;m using the list loop template (views\/list\/loop.php) to get a list of events (based on the PostPerPage Limit I have set in the settings). But now, I want to give this list some arguements, to filter this list manually by etc. current month, or post per page limit. The structure is this: &lt;?php [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filtering-list-by-current-month\/","article_modified_time":"2017-06-02T22:39:41+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filtering-list-by-current-month\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filtering-list-by-current-month\/","name":"Filtering list by current month -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-05-31T17:35:27+00:00","dateModified":"2017-06-02T22:39:41+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filtering-list-by-current-month\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/filtering-list-by-current-month\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filtering-list-by-current-month\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Filtering list by current month"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1291393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1291393\/revisions"}],"predecessor-version":[{"id":1292634,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1291393\/revisions\/1292634"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1291393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}