snipt

Ctrl+h for KB shortcuts

HTML+PHP

Submit to Stumble

http://www.stumbleupon.com/submit?url=<?php echo get_permalink() ?>&title=<?php the_title(); ?>
https://snipt.net/embed/8a765b74077e23533417b409f748c536/
/raw/8a765b74077e23533417b409f748c536/
8a765b74077e23533417b409f748c536
html+php
HTML+PHP
1
2019-07-10T09:54:35
True
False
False
/api/public/snipt/722/
submit-to-stumble
<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>http://www.stumbleupon.com/submit?url=<span class="cp">&lt;?php</span> <span class="k">echo</span> <span class="nx">get_permalink</span><span class="p">()</span> <span class="cp">?&gt;</span><span class="err">&amp;</span>title=<span class="cp">&lt;?php</span> <span class="nx">the_title</span><span class="p">();</span> <span class="cp">?&gt;</span> </span></pre></div> </td></tr></table>
social

HTML+PHP

Submit to Facebook

http://www.facebook.com/share.php?u=<?php echo get_permalink() ?>
https://snipt.net/embed/3c99a1442208830c396904116297c021/
/raw/3c99a1442208830c396904116297c021/
3c99a1442208830c396904116297c021
html+php
HTML+PHP
1
2019-07-09T04:37:40
True
False
False
/api/public/snipt/721/
submit-to-facebook
<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>http://www.facebook.com/share.php?u=<span class="cp">&lt;?php</span> <span class="k">echo</span> <span class="nx">get_permalink</span><span class="p">()</span> <span class="cp">?&gt;</span> </span></pre></div> </td></tr></table>
social

HTML+PHP

Display Text for Category Page

<?php if ( in_category(19) ) :?>promo text for mailing list<?php else: ?>promo text for RSS feed<?php endif; ?>
https://snipt.net/embed/5e489f11222cbaeba83d022adeb5c888/
/raw/5e489f11222cbaeba83d022adeb5c888/
5e489f11222cbaeba83d022adeb5c888
html+php
HTML+PHP
1
2019-06-21T07:06:57
True
False
False
/api/public/snipt/720/
display-text-for-category-page
<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="k">if</span> <span class="p">(</span> <span class="nx">in_category</span><span class="p">(</span><span class="mi">19</span><span class="p">)</span> <span class="p">)</span> <span class="o">:</span><span class="cp">?&gt;</span>promo text for mailing list<span class="cp">&lt;?php</span> <span class="k">else</span><span class="o">:</span> <span class="cp">?&gt;</span>promo text for RSS feed<span class="cp">&lt;?php</span> <span class="k">endif</span><span class="p">;</span> <span class="cp">?&gt;</span> </span></pre></div> </td></tr></table>
category

HTML+PHP

Twitter Script

1
2
3
4
<div id="twitter_div">
<ul id="twitter_update_list"></ul></div>
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/natewhitehill.json?callback=twitterCallback2&count=3"></script>
https://snipt.net/embed/b8cbe69d8a1ed1b09270ceb8fa946365/
/raw/b8cbe69d8a1ed1b09270ceb8fa946365/
b8cbe69d8a1ed1b09270ceb8fa946365
html+php
HTML+PHP
4
2019-07-12T10:06:14
True
False
False
/api/public/snipt/719/
twitter-script
<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="p">&lt;</span><span class="nt">div</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;twitter_div&quot;</span><span class="p">&gt;</span> </span><span id="L-2"><a name="L-2"></a><span class="p">&lt;</span><span class="nt">ul</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;twitter_update_list&quot;</span><span class="p">&gt;&lt;/</span><span class="nt">ul</span><span class="p">&gt;&lt;/</span><span class="nt">div</span><span class="p">&gt;</span> </span><span id="L-3"><a name="L-3"></a><span class="p">&lt;</span><span class="nt">script</span> <span class="na">type</span><span class="o">=</span><span class="s">&quot;text/javascript&quot;</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;http://twitter.com/javascripts/blogger.js&quot;</span><span class="p">&gt;&lt;/</span><span class="nt">script</span><span class="p">&gt;</span> </span><span id="L-4"><a name="L-4"></a><span class="p">&lt;</span><span class="nt">script</span> <span class="na">type</span><span class="o">=</span><span class="s">&quot;text/javascript&quot;</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;http://twitter.com/statuses/user_timeline/natewhitehill.json?callback=twitterCallback2&amp;count=3&quot;</span><span class="p">&gt;&lt;/</span><span class="nt">script</span><span class="p">&gt;</span> </span></pre></div> </td></tr></table>
twitter

HTML+PHP

Most Commented

<?php if (function_exists('mdv_most_commented')) mdv_most_commented(); ?>
https://snipt.net/embed/6b253c18f4dc14a290dbf144d718239d/
/raw/6b253c18f4dc14a290dbf144d718239d/
6b253c18f4dc14a290dbf144d718239d
html+php
HTML+PHP
1
2019-07-11T22:07:22
True
False
False
/api/public/snipt/718/
most-commented
<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="k">if</span> <span class="p">(</span><span class="nb">function_exists</span><span class="p">(</span><span class="s1">&#39;mdv_most_commented&#39;</span><span class="p">))</span> <span class="nx">mdv_most_commented</span><span class="p">();</span> <span class="cp">?&gt;</span> </span></pre></div> </td></tr></table>
plugins

HTML+PHP

Most Viewed

<?php if (function_exists('get_most_viewed')) { get_most_viewed(); } ?>
https://snipt.net/embed/b783f5ff88728cbb6fc213b9277aeaf5/
/raw/b783f5ff88728cbb6fc213b9277aeaf5/
b783f5ff88728cbb6fc213b9277aeaf5
html+php
HTML+PHP
1
2019-07-08T07:37:54
True
False
False
/api/public/snipt/717/
most-viewed
<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="k">if</span> <span class="p">(</span><span class="nb">function_exists</span><span class="p">(</span><span class="s1">&#39;get_most_viewed&#39;</span><span class="p">))</span> <span class="p">{</span> <span class="nx">get_most_viewed</span><span class="p">();</span> <span class="p">}</span> <span class="cp">?&gt;</span> </span></pre></div> </td></tr></table>
plugins

HTML+PHP

Top Commentators

<?php if (function_exists('ns_show_top_commentators')) ns_show_top_commentators(); ?>
https://snipt.net/embed/4d9fea5b8a3ff610f681e5b1372e3239/
/raw/4d9fea5b8a3ff610f681e5b1372e3239/
4d9fea5b8a3ff610f681e5b1372e3239
html+php
HTML+PHP
1
2019-07-02T14:28:51
True
False
False
/api/public/snipt/716/
top-commentators
<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="k">if</span> <span class="p">(</span><span class="nb">function_exists</span><span class="p">(</span><span class="s1">&#39;ns_show_top_commentators&#39;</span><span class="p">))</span> <span class="nx">ns_show_top_commentators</span><span class="p">();</span> <span class="cp">?&gt;</span> </span></pre></div> </td></tr></table>
plugins

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

Get Recent Comments

<?php if (function_exists('get_recent_comments')) get_recent_comments(); ?>
https://snipt.net/embed/eacf3684266db223ba64c2ec9019c906/
/raw/eacf3684266db223ba64c2ec9019c906/
eacf3684266db223ba64c2ec9019c906
html+php
HTML+PHP
1
2019-07-09T07:01:57
True
False
False
/api/public/snipt/714/
get-recent-comments
<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="k">if</span> <span class="p">(</span><span class="nb">function_exists</span><span class="p">(</span><span class="s1">&#39;get_recent_comments&#39;</span><span class="p">))</span> <span class="nx">get_recent_comments</span><span class="p">();</span> <span class="cp">?&gt;</span> </span></pre></div> </td></tr></table>
plugins

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