lundi 2 mars 2015

How to get main div html to print a list of posts inside?


I have created a function that lists custom post types with a specific term and prints the html. I'm using it as part of my plugin code. I reused part of this information: http://ift.tt/1qimCpi (step 3)


This is fine, but the html structure that is harcoded on the code I built:



<div id="main-content" class="main-content">
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<!-- articles iteration -->
</div>
</div>
</div>


Won't be the same one of the theme installed on the site the plugin will live in. Is there a way to obtain that html wrapper programatically?


Thanks





Aucun commentaire:

Enregistrer un commentaire