snipt

Ctrl+h for KB shortcuts

HTML+PHP

WP List Archives

<?php wp_get_archives('type=postbypost&limit=10&format=custom&before=<li>&after=</li>'); ?>
https://snipt.net/embed/4c97c17794af99b94e735250b7fbc549/
/raw/4c97c17794af99b94e735250b7fbc549/
4c97c17794af99b94e735250b7fbc549
html+php
HTML+PHP
1
2019-07-14T19:48:32
True
False
False
/api/public/snipt/715/
wp-list-archives
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</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="nx">wp_get_archives</span><span class="p">(</span><span class="s1">&#39;type=postbypost&amp;limit=10&amp;format=custom&amp;before=&lt;li&gt;&amp;after=&lt;/li&gt;&#39;</span><span class="p">);</span> <span class="cp">?&gt;</span> </span></pre></div> </td></tr></table>
list

HTML+PHP

WP List Blogroll

<?php get_links(-1, '<li>', '</li>', '', TRUE, 'url', FALSE); ?>
https://snipt.net/embed/93dac9b1fa79cdeb784bc952e8a1e63e/
/raw/93dac9b1fa79cdeb784bc952e8a1e63e/
93dac9b1fa79cdeb784bc952e8a1e63e
html+php
HTML+PHP
1
2019-07-05T11:56:46
True
False
False
/api/public/snipt/713/
wp-list-blogroll
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</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="nx">get_links</span><span class="p">(</span><span class="o">-</span><span class="mi">1</span><span class="p">,</span> <span class="s1">&#39;&lt;li&gt;&#39;</span><span class="p">,</span> <span class="s1">&#39;&lt;/li&gt;&#39;</span><span class="p">,</span> <span class="s1">&#39;&#39;</span><span class="p">,</span> <span class="k">TRUE</span><span class="p">,</span> <span class="s1">&#39;url&#39;</span><span class="p">,</span> <span class="k">FALSE</span><span class="p">);</span> <span class="cp">?&gt;</span> </span></pre></div> </td></tr></table>
list