• Resolved pitware2005

    (@pitware2005)


    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)
  • Hi,

    Do you have “Display events as” set to Posts under Events > Settings > Pages > Event Pages?

    Thread Starter pitware2005

    (@pitware2005)

    Hi,

    yes this is set to “Posts”.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    sorry but I’m afraid that we are quite limited with regards to other plugin or theme but we can give you advice with regards to EM

    Hello The Events Calendar users.
    Is that a place where I can ask for help with a similar problem ?
    WP = v4.8.2 Events Caledar = v 4.6 TOTAL theme = v4.4

    When I click on a event for more details (in Month or list view) I get an empty page with a nice EVENT TITLE but NO other detail about the event.
    Activating the WP error display shows a Fatal error message :
    ———————————-
    Fatal error: Uncaught Error: Call to undefined function wpex_get_the_ID() in /home/paroisseir/www/wp-content/themes/Total/framework/3rd-party/tribe-events/tribe-events-config.php:224 Stack trace: #0 /home/paroisseir/www/wp-includes/class-wp-hook.php(298): WPEX_Tribe_Events_Config::post_subheading(‘<div class=”pag…’, ‘singular_tribe_…’) #1 /home/paroisseir/www/wp-includes/plugin.php(203): WP_Hook->apply_filters(”, Array) #2 /home/paroisseir/www/wp-content/themes/Total/framework/helpers/page-header.php(366): apply_filters(‘wpex_post_subhe…’, ”, ‘singular_tribe_…’) #3 /home/paroisseir/www/wp-content/themes/Total/framework/helpers/page-header.php(315): wpex_page_header_subheading_content() #4 /home/paroisseir/www/wp-content/themes/Total/framework/hooks/partials.php(369): wpex_page_header_has_subheading() #5 /home/paroisseir/www/wp-includes/class-wp-hook.php(298): wpex_page_header_subheading(”) #6 /home/paroisseir/www/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #7 /home/paroisseir/www/wp- in /home/paroisseir/www/wp-content/themes/Total/framework/3rd-party/tribe-events/tribe-events-config.php on line 224
    ———————————-
    Maybe somebody understands the error message and knows how to correct the problem.
    Beside that misbehaviour, that plug-in looks great.

    TESTING as recommended in doc, There seems to be a conflict:
    1 – Calendar works fine with WP original Twenty Seveteen theme (no other plug-in active)
    2 – back to TOTAL theme gives an empty single event vi-ew! (no other plug-in active)

    System infos:
    WP = v4.8.2
    Events Caledar = v 4.6
    TOTAL theme = v4.4

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display empty page’ is closed to new replies.