shortcode columns not working in a custom page template?
-
Hi,
after hours of searching… maybe you can find my mistake…
I will build a custom page template, using advanced custom fields.
The shortcode [hr] works fine, the shortcode [columns] not. Here is my code example:
<?php echo do_shortcode('[hr]'); ?> <?php echo do_shortcode('[column size="three-fourth"]'); ?> <p>Jürgen, dies ist ein Test um einem wirklich gut versteckten Fehler auf die Spur zu kommen...</p> <?php echo do_shortcode('[/column]'); ?> <?php echo do_shortcode('[column size="one-fourth" last="true"]'); ?> <p>Jürgen, dies ist ein Test um einem wirklich gut versteckten Fehler auf die Spur zu kommen...</p> <?php echo do_shortcode('[/column]'); ?> <?php echo do_shortcode('[hr]'); ?>
If i load the page, i find the [hr] line (ok), after that the text “Jürgen, dies…” (ok) and then the text /column (error). Looks like the shortcode “column size=”three-fourth” is ignored.
Thx. for your help.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘shortcode columns not working in a custom page template?’ is closed to new replies.