• Hi all, i am trying to create a big google map on my WordPress powered site but the theme i am using do not have a “pre installed” template page. i tried eidting them but it’s to no success yet.

    The map page is @ http://tinyurl.com/5wxkyx

    i am using this theme, have emailed the author hoping for help but i guess they don’t like people editing nor advising on editing their themes. i am not trying to remove any copyrightmessages as many people are doing, i hope to keep the message and link to the authors’;s site for such a great theme, i just hope to display the map on a page, big in size, without side bar and hopfully take up the whole screen, allow the comment block and google map plugin will work.

    i am using this theme http://www.jide.fr/francais/telechargements/theme-freshy-2/

    i am using this Google Map plugin – http://avi.alkalay.net/2006/11/google-maps-plugin-for-wordpress.html

    the following creates a blank page instead. What am i missing?

    <?php
    /*
    Template Name: gmap
    */
    ?>
    <?php get_header(); ?>
    
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div id="post-<?php the_ID(); ?>">
    				<h2><?php the_title(); ?></h2>
    
    					<?php the_content(); ?>
    
    <?php comments_template(); ?>
    
    <?php get_footer(); ?>

    i understand i may have to call for core WordPress functions and the Google Map core functions in order for this to work and of course how the theme calls this files. Any guidance will really appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • What am i missing?

    For starters… the closing of the “if” and the “while”.

    Thread Starter etegration1

    (@etegration1)

    thanks moshu. Edited to the following:

    <?php
    /*
    Template Name: gmap
    */
    ?>
    <?php get_header(); ?>
    
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div id="post-<?php the_ID(); ?>">
    				<h2><?php the_title(); ?></h2>
    
    					<?php the_content(); ?>
    
    		<?php comments_template(); ?>
    
    		<?php endif; ?>
    
    		<?php endwhile; ?>
    
    	<?php else : ?>
    
    		<h2><?php _e('Not Found',TEMPLATE_DOMAIN); ?></h2>
    		<p><?php _e('Sorry, but you are looking for something that isn\'t here.',TEMPLATE_DOMAIN); ?></p>
    
    	<?php endif; ?>
    
    	</div>
    
    </div>
    
    <?php get_footer(); ?>

    still blank. 🙁

    Thread Starter etegration1

    (@etegration1)

    for reference, the default page.php

    <?php get_header(); ?>
    
    	<div id="content">
    
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    				<h2><?php the_title(); ?></h2>
    
    				<div class="entry">
    					<?php the_content('<span class="readmore">'.__('Read the rest of this entry &raquo;',TEMPLATE_DOMAIN).'</span>'); ?>
    				</div>
    			</div>
    
    			<div class="meta">
    				<dl>
    				<?php if(function_exists('the_tags')) : ?>
    					<?php the_tags('<dt>Tags</dt><dd>', ', ', '</dd>'); ?>
    				<?php endif; ?>
    				<?php if(function_exists('the_bunny_tags')) : ?>
    					<?php the_bunny_tags('<dt>Tags</dt><dd>', '</dd>', ', '); ?>
    				<?php endif; ?>
    				<?php if(function_exists('the_bookmark_links')) : ?>
    					<dt><?php _e('Spread the word',TEMPLATE_DOMAIN); ?></dt><dd><?php the_bookmark_links(); ?></dd>
    				<?php endif; ?>
    				<?php if ('open' == $post-> comment_status) : ?>
    					<dt><img alt="<?php _e('Comments rss',TEMPLATE_DOMAIN); ?>" src="<?php echo get_bloginfo('stylesheet_directory') ?>/images/icons/feed-icon-16x16.gif" /></dt><dd><?php comments_rss_link(__('Comments rss',TEMPLATE_DOMAIN)); ?></dd>
    				<?php endif; ?>
    				<?php if ('open' == $post->ping_status) : ?>
    					<dt><img alt="<?php _e('Trackback',TEMPLATE_DOMAIN); ?>" src="<?php echo get_bloginfo('stylesheet_directory') ?>/images/icons/trackback-icon-16x16.gif" /></dt><dd><a href="<?php trackback_url(true); ?> " rel="trackback" title="<?php _e('Trackback',TEMPLATE_DOMAIN); ?>"><?php _e('Trackback',TEMPLATE_DOMAIN); ?></a></dd>
    				<?php endif; ?>
    				<?php if ($user_ID) : ?>
    					<dt><img alt="<?php _e('Edit',TEMPLATE_DOMAIN); ?>" src="<?php echo get_bloginfo('stylesheet_directory') ?>/images/icons/edit-icon-16x16.gif" /></dt><dd><?php edit_post_link(__('Edit',TEMPLATE_DOMAIN),'',''); ?></dd>
    				<?php endif; ?>
    				</dl>
    			</div>
    
    		<?php comments_template(); ?>
    
    		<?php endwhile; ?>
    
    	<?php else : ?>
    
    		<h2><?php _e('Not Found',TEMPLATE_DOMAIN); ?></h2>
    		<p><?php _e('Sorry, but you are looking for something that isn\'t here.',TEMPLATE_DOMAIN); ?></p>
    
    	<?php endif; ?>
    
    	</div>
    
    	<?php // sidebars ?>
    	<?php if ($freshy_options['sidebar_right'] == true) get_sidebar(); ?>
    	<?php if ($freshy_options['sidebar_left'] == true) include (TEMPLATEPATH . '/sidebar_left.php'); ?>
    
    </div>
    
    <?php get_footer(); ?>

    You could just use this and it will automatically create an XML sitemap for you..

    http://wordpress.org/extend/plugins/google-sitemap-generator/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Theme Editor experts help needed’ is closed to new replies.