Anyone who has ever tried to build a WordPress theme will appreciate the simplicity and flexibility of Tumblr themes.

A few years back (it must have been around 2012) my friend Jose Morraja asked me to create a Tumblr theme for him. I was amazed not just by the simplicity of its conditional and content tags, but by the fact that you could do all of these, plus mapping a subdomain, on a 100% free site.
You can see an example of these conditional and content tags below:
{block:IfLogoImage}
<h1><img src="{image:Logo}"/></h1>
{/block:IfLogoImage}
{block:IfNotLogoImage}
<h1 class="cropped"><a href="/">{Title}</a></h1>
{/block:IfNotLogoImage}
Meet my favourite plugin
This pseudo-code approach reminds me of one of my favourite plugins EVER: Custom Content Shortcode by Eliot Akira

Custom Content Shortcode will let you create “pseudo-code” loops using a million options.
From featured images for Custom Post types from a certain category & term:
[loop type=cpt_name taxonomy=custom_taxonomy_name term=sometermname]
<li>[field image size=medium]</a></li>
[/loop]
Linked featured image and title of all child pages for a given parent page, including ACF custom fields:
[loop orderby=date order=ASC type=page parent=86]
<li class="childpage">[field image-link size=medium]
<h3>[field title-link]</h3><
<p>[field acf_customfield_name]</p>
</li>
[/loop]
List terms in a taxonomy:
[for each=custom_taxonomy_name]
<li class="term">[each name]</li>
[/for]
The plugin has its own system to create meta-shortcodes and simplify their usage:
The plugin lets you loop through users and supports pagination and conditonal logic. It even allows to pass variables and paremeters, you can read all about it here.
[if field=date before='106 weeks ago']This is an old article[/if]
[is login]
You are logged in.
[else]
You are not logged in.
[/is]
Sigue leyendo “Tumblr themes & Custom Content Shortcode”