What is the most efficient way to convert this jekyll code to PHP? : <p>What is the most efficient way to convert this jekyll code to PHP?</p>

<pre><code>{% for post in site.posts limit: 12 %}
    &lt;a href="{{post.url}}" style="background-image: url(assets/img/posts/thumbnails/{{post.thumbnail}})" class="academic-thumb"&gt;
        &lt;div class="academic-meta"&gt;
            &lt;div class="name"&gt;
                {{post.title}}
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/a&gt;
{% endfor %}
</code></pre>
