Giulio86
Forum Replies Created
-
I know in effect the shortcode is out of the loop, is in the header. However i have tried to put before have_posts() but don’t work.
I do not know what to do.
thanks for your patienceI followed exactly the example but does not work (I used the same theme). The page seems not connected to the category:
(category.php)
…
get_header(); ?><section id=”primary” class=”site-content”>
<div id=”content” role=”main”><?php if ( have_posts() ) : ?>
<header class=”archive-header”>
<h1 class=”archive-title”><?php printf( __( ‘Category Archives: %s’, ‘twentytwelve’ ), ‘<span>’ . single_cat_title( ”, false ) . ‘</span>’ ); ?></h1><div class=”archive-meta”> <?php echo do_shortcode(‘[showauto]’); ?></div>
</header><!– .archive-header –>
…where am I wrong?
thanks for the help
i read the plugin documentation but i’understand this shortcodes [showauto].
I have to write [showauto] on the page or only in category.php?
excuse my ignorance