mercredi 16 décembre 2015

Render view from WordPress plugin

In my plugin, I created a custom post type called "Product", then I added a product page single (product-single.php) and it's rendering and everything works fine. In single page product, I want render a template (view) but i do not know the structure of theme which the user has installed. Do I have write like this :

<?php get_header(); ?>

     // Content, View

<?php get_sidebar(); ?>
<?php get_footer(); ?>

Or just like that, without sidebar

<?php get_header(); ?>

      // Content, View

 <?php get_footer(); ?>

Because every theme has his own structure.

Any Ideas to resolve my problem are welcome.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire