snipt

Ctrl+h for KB shortcuts

HTML

facebook1

<a href=”http://www.dominio.com”><div align=”center”><img src=”http://www.dominio.com/images/nombredefoto.jpg” width=”500? height=”800?></a>
https://snipt.net/embed/132d2f5df174e7ea15eb26e37e58b226/
/raw/132d2f5df174e7ea15eb26e37e58b226/
132d2f5df174e7ea15eb26e37e58b226
html
HTML
1
2019-07-15T03:29:16
True
False
False
/api/public/snipt/24970/
facebook1
<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="p">&lt;</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">”http://www.dominio.com”</span><span class="p">&gt;&lt;</span><span class="nt">div</span> <span class="na">align</span><span class="o">=</span><span class="s">”center”</span><span class="p">&gt;&lt;</span><span class="nt">img</span> <span class="na">src</span><span class="o">=</span><span class="s">”http://www.dominio.com/images/nombredefoto.jpg”</span> <span class="na">width</span><span class="o">=</span><span class="s">”500?</span> <span class="na">height</span><span class="o">=</span><span class="s">”800?</span><span class="p">&gt;&lt;/</span><span class="nt">a</span><span class="p">&gt;</span> </span></pre></div> </td></tr></table>
facebook, page

TeX

no page number

# no page number
\thispagestyle{empty}
https://snipt.net/embed/21b1c09e7d8ebcca44e60009bfa6282b/
/raw/21b1c09e7d8ebcca44e60009bfa6282b/
21b1c09e7d8ebcca44e60009bfa6282b
tex
TeX
3
2019-07-10T14:22:45
True
False
False
/api/public/snipt/24070/
no-page-number
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a># no page number </span><span id="L-2"><a name="L-2"></a><span class="k">\thispagestyle</span><span class="nb">{</span>empty<span class="nb">}</span> </span></pre></div> </td></tr></table>
latex, number, page

PHP

Removes editor from post/page

1
2
3
4
5
6
7
<?php
add_action('init', 'remove_textarea');

function remove_textarea() {
	remove_post_type_support( 'post', 'editor' );
}
?>
https://snipt.net/embed/81a4c58e641df04c2687c8983dabb171/
/raw/81a4c58e641df04c2687c8983dabb171/
81a4c58e641df04c2687c8983dabb171
php
PHP
7
2019-07-15T14:00:39
True
False
False
/api/public/snipt/18999/
removes-editor-from-postpage
<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> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</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><span id="L-2"><a name="L-2"></a><span class="nx">add_action</span><span class="p">(</span><span class="s1">&#39;init&#39;</span><span class="p">,</span> <span class="s1">&#39;remove_textarea&#39;</span><span class="p">);</span> </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a><span class="k">function</span> <span class="nf">remove_textarea</span><span class="p">()</span> <span class="p">{</span> </span><span id="L-5"><a name="L-5"></a> <span class="nx">remove_post_type_support</span><span class="p">(</span> <span class="s1">&#39;post&#39;</span><span class="p">,</span> <span class="s1">&#39;editor&#39;</span> <span class="p">);</span> </span><span id="L-6"><a name="L-6"></a><span class="p">}</span> </span><span id="L-7"><a name="L-7"></a><span class="cp">?&gt;</span><span class="x"></span> </span></pre></div> </td></tr></table>
editor, page, post, remove, wordpress

PHP

WordPress category

1
2
3
4
5
6
7
<?php
//WordPress categorie parent binnenhalen

$category = get_the_category();
$parent = get_cat_name($category[0]->category_parent);
$parentID = get_cat_ID($parent);
?>
https://snipt.net/embed/5baeeef99552ea46a8f40764022c30c7/
/raw/5baeeef99552ea46a8f40764022c30c7/
5baeeef99552ea46a8f40764022c30c7
php
PHP
7
2019-07-12T08:41:48
True
False
False
/api/public/snipt/17011/
wordpress-category
<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> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</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><span id="L-2"><a name="L-2"></a><span class="c1">//WordPress categorie parent binnenhalen</span> </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a><span class="nv">$category</span> <span class="o">=</span> <span class="nx">get_the_category</span><span class="p">();</span> </span><span id="L-5"><a name="L-5"></a><span class="nv">$parent</span> <span class="o">=</span> <span class="nx">get_cat_name</span><span class="p">(</span><span class="nv">$category</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">-&gt;</span><span class="na">category_parent</span><span class="p">);</span> </span><span id="L-6"><a name="L-6"></a><span class="nv">$parentID</span> <span class="o">=</span> <span class="nx">get_cat_ID</span><span class="p">(</span><span class="nv">$parent</span><span class="p">);</span> </span><span id="L-7"><a name="L-7"></a><span class="cp">?&gt;</span><span class="x"></span> </span></pre></div> </td></tr></table>
page, wordpress