snipt

Ctrl+h for KB shortcuts

PHP

Wordpress: The Event Calendar get_posts (tribe_get_events)

1
2
3
4
<?php $posts = tribe_get_events(array(
    'eventCat'     => 38,
    'time_order'   => 'ASC'
));
https://snipt.net/embed/112e445bdc3df27707f0f2d76a255df2/
/raw/112e445bdc3df27707f0f2d76a255df2/
112e445bdc3df27707f0f2d76a255df2
php
PHP
4
2019-03-17T22:37:19
True
False
True
Jun 25, 2013 at 10:31 AM
/api/public/snipt/65586/
wordpress-the-event-calendar-get_posts-tribe_get_events
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="cp">&lt;?php</span> <span class="nv">$posts</span> <span class="o">=</span> <span class="nx">tribe_get_events</span><span class="p">(</span><span class="k">array</span><span class="p">(</span> </span><span id="L-2"><a name="L-2"></a> <span class="s1">&#39;eventCat&#39;</span> <span class="o">=&gt;</span> <span class="mi">38</span><span class="p">,</span> </span><span id="L-3"><a name="L-3"></a> <span class="s1">&#39;time_order&#39;</span> <span class="o">=&gt;</span> <span class="s1">&#39;ASC&#39;</span> </span><span id="L-4"><a name="L-4"></a><span class="p">));</span> </span></pre></div> </td></tr></table>
"event calendar", get_posts, wordpress