WordPress.org

Ready to get started?Download WordPress

Forums

All-in-One Event Calendar
Calendar wont show on custom template page (3 posts)

  1. DominicanoBro
    Member
    Posted 1 year ago #

    Hi guys,
    I have a question my calendar con show at all when using a custom template page I have created. Using the same template on other pages shows the content of the page absolutely fine however when using this template on the calendars page it wont show it.
    here is my template any ideas why?

    <?php
    /*
    Template Name: Pagina Eventos Categoria 17 Footer
    */
    ?>
    
    <?php get_header(); ?>
    
        <div id="content" class="clearfix">
    
            <div id="main" class="col620 clearfix" role="main">
    
    					<?php get_template_part( 'content', 'page' ); ?>
    
                <div id="featured-page-category">
    
                 <div id="featured-page-category-list" class="col480">
    				 <?php
                        $fPosts = new WP_Query( array(
    						'cat' => 17,
    						'offset' => 1,
    						'posts_per_page' => 10,
                            'post__in' => get_option("sticky_posts"),
    						'ignore_sticky_posts' => 1,
                        ));
                     ?>
                 </div>
    			</div>
    
              <div class="item-wrap clearfix">
    			<?php
    				$sticky = get_option("sticky_posts");
    				query_posts( array(
    					'cat' => 17,
    					'post__not_in' => $sticky,
    					'paged' => (get_query_var('paged')) ? get_query_var('paged') : 1
    			)); ?>
    
    			<?php if ( have_posts() ) : ?>
    
    				<?php /* Start the Loop */ ?>
    				<?php while ( have_posts() ) : the_post(); ?>
    
    					<div class="item col300">
    
                           <div class="item-cat">
                            	<?php
    								/* translators: used between list items, there is a space after the comma */
    								$categories_list = get_the_category_list( __( ', ', 'noteworthy' ) );
    								if ( $categories_list && noteworthy_categorized_blog() ) :
    							?>
    							<span class="cat-links">
    								<?php printf( __( '%s', 'noteworthy' ), $categories_list ); ?>
    							</span>
    							<?php endif; // End if categories ?>
                            </div>
    
                          <div class="item-content">
                            <header>
                        	  <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'noteworthy' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php if(the_title( '', '', false ) !='') the_title(); else _e( 'View Post', 'noteworthy' ); ?></a></h2>
                            </header>
                          </div>
    
                          <?php
    						if ( has_post_thumbnail()) : ?>
    
                            	 <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php echo the_post_thumbnail( array( 250, 250) ); ?></a>
    
    						<?php else : ?>
    
                                <?php $postimgs =& get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC' ) );
    							if ( !empty($postimgs) ) :
    								$firstimg = array_shift( $postimgs );
    								$my_image = wp_get_attachment_image( $firstimg->ID, array( 250, 250 ) );
    							?>
    
                                <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php echo $my_image; ?></a>
                                <?php endif; ?>
    
                            <?php endif; ?>
    
                        </div>
    
    				<?php endwhile; ?>
    
    				<?php if (function_exists("noteworthy_pagination")) {
    							noteworthy_pagination();
    				} elseif (function_exists("noteworthy_content_nav")) {
    							noteworthy_content_nav( 'nav-below' );
    				}?>
    
    			<?php else : ?>
    
    				<article id="post-0" class="post no-results not-found">
    					<header class="entry-header">
    						<h1 class="entry-title"><?php _e( 'Nothing Found', 'noteworthy' ); ?></h1>
    					</header><!-- .entry-header -->
    
    					<div class="entry-content post_content">
    						<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'noteworthy' ); ?></p>
    						<?php get_search_form(); ?>
    					</div><!-- .entry-content -->
    				</article><!-- #post-0 -->
    
    			<?php endif; ?>
                <?php wp_reset_query() ?>
    
              </div>
    
            </div> <!-- end #main -->
    
            <?php get_sidebar(); ?>
    
        </div> <!-- end #content -->
    
    <?php get_footer(); ?>

    http://wordpress.org/extend/plugins/all-in-one-event-calendar/

  2. Lord_Mord
    Member
    Posted 1 year ago #

    Hi! Did you solve this? Because I have the same problem.

  3. DominicanoBro
    Member
    Posted 1 year ago #

    I didnt sorry, I ended up moving away from the theme and plugin

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic