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