Display empty page
-
Hello,
i have a big problem.
I use this addon for a while with no porblems. But now i insert in the website albums. That′s not the problem, but when i add some code for the albums the event (single) site is empty.
Can someone say me please why this change will have such conflicts?
Original:
<div class="tm-article-content uk-margin"> <?php the_content(''); ?> <?php wp_link_pages(); ?> <div class="uk-margin-large-top"> <?php the_tags('<p>'.__('Tags: ', 'warp'), ', ', '</p>'); ?> <?php // edit_post_link(__('Edit this post.', 'warp'), '<p><i class="uk-icon-pencil"></i> ','</p>'); ?> </div> <?php if (pings_open()) : ?> <p><?php printf(__('<a href="%s">Trackback</a> from your site.', 'warp'), get_trackback_url()); ?></p> <?php endif; ?> </div>
My changed one:
<div class="tm-article-content uk-margin"> <?php the_content(''); ?> <?php $albumid = get_field('album'); ?> <?php if ($albumid == 0) : // Es wird nichts ausgegeben da es kein Album gibt! echo 'Dies ist ein Test'; ?> <?php endif; ?> <?php if ($albumid != 0) : ?> <div style="margin:50px 0 0 0"> <?php echo do_shortcode('[um_gallery_albums id="'.$albumid.'"]'); ?> </div> <?php endif; ?> <?php wp_link_pages(); ?> <div class="uk-margin-large-top"> <?php the_tags('<p>'.__('Tags: ', 'warp'), ', ', '</p>'); ?> <?php // edit_post_link(__('Edit this post.', 'warp'), '<p><i class="uk-icon-pencil"></i> ','</p>'); ?> </div> <?php if (pings_open()) : ?> <p><?php printf(__('<a href="%s">Trackback</a> from your site.', 'warp'), get_trackback_url()); ?></p> <?php endif; ?> </div>
Also i have tested with an single-event.php but the system ignors this. My other single-xxx.php works perferct in the same folder. So why?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Display empty page’ is closed to new replies.