{"id":4658249,"date":"2014-02-28T03:05:59","date_gmt":"2014-02-28T03:05:59","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/how-to-create-pagination-1\/"},"modified":"2016-08-21T16:47:13","modified_gmt":"2016-08-21T16:47:13","slug":"how-to-create-pagination-1","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/how-to-create-pagination-1\/","title":{"rendered":"How to create pagination?"},"content":{"rendered":"<p>Hello, I am outputting past events with the method below.<br \/>\nI cannot find in the documentation how to setup pagination.<\/p>\n<p>Thanks.<\/p>\n<pre><code>$event_format = &#039;\n&lt;li&gt;\n&lt;strong&gt;#_EVENTDATES&lt;\/strong&gt;\n&lt;h4 class=&quot;post-title&quot;&gt;\n       #_EVENTLINK\n&lt;\/h4&gt;\n&lt;div class=&quot;content&quot;&gt;\n       {has_location}&lt;i&gt;#_LOCATIONNAME, #_LOCATIONTOWN #_LOCATIONSTATE&lt;\/i&gt;{\/has_location}\n&lt;\/div&gt;\n&lt;\/li&gt;\n&#039;;\nem_events( array(&quot;limit&quot; =&gt; 5, &quot;scope&quot; =&gt; &#039;past&#039;, &quot;format&quot; =&gt; $event_format ) );<\/code><\/pre>\n<p>https:\/\/wordpress.org\/plugins\/events-manager\/<\/p>\n","protected":false},"template":"","class_list":["post-4658249","topic","type-topic","status-closed","hentry","topic-tag-pagination"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4658249","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\/4658249\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4658249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}