Quote:
Originally Posted by KRH
lol..u r a professional webmaster...go learn all those things and help me out 
|
I never claimed that. And just for the record I'm an affiliate marketer. Big difference. I've never liked or claimed to be good at programming. Nor will I ever try to be.
Here's the code, but as TechieGuy said, how are you going to use PHP with Blogger? My blog calls up the below code by referencing a file called archives.php This is the contents of the file below.
PHP Code:
<?php get_header(); ?>
<div id="content">
<!--the loop-->
<?php if (have_posts()) : ?>
<h1 class="btmspace">
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<?php echo single_cat_title(); ?>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
Archive for <?php the_time('F jS, Y'); ?>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
Archive for <?php the_time('F, Y'); ?>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
Archive for <?php the_time('Y'); ?>
<?php /* If this is a search */ } elseif (is_search()) { ?>
Search Results
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
Author Archive
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
Blog Archives
<!--do not delete-->
<?php } ?>
</h1>
<!--loop article begin-->
<?php while (have_posts()) : the_post(); ?>
<!--post title as a link-->
<div class="comm"><span><?php comments_popup_link('0', '1', '%'); ?></span></div>
<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
<!--Post Meta-->
<div class="post-meta-top">
<div class="auth"><span>Posted by <strong><?php the_author_posts_link(); ?></strong></span></div>
<div class="date"><span><?php the_time('F j, Y'); ?></span></div>
</div>
<div class="clearboth"></div>
<!--optional excerpt or automatic excerpt of the post-->
<?php the_excerpt(); ?>
<!--Post Meta-->
<hr />
<!--one post end-->
<?php endwhile; ?>
<!-- Previous/Next page navigation -->
<div class="page-nav">
<div class="nav-previous"><?php previous_posts_link('Previous Page') ?></div>
<div class="nav-next"><?php next_posts_link('Next Page') ?></div>
</div>
<!-- do not delete-->
<?php else : ?>
Not Found
<!--do not delete-->
<?php endif; ?>
<!--archive.php end-->
</div>
<!--include sidebar-->
<?php get_sidebar();?>
<!--include footer-->
<?php get_footer(); ?>
Then my sidebar.php file references the archives.php file by using this code. This is what creates the archives tab.
Code:
<h2>Archives</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
I still don't get how you are going to make wordpress blog code compatible with Blogger. It's almost like trying to use Mac software on Windows... unless I'm missing something.