Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 16th Aug 2010, 08:07 AM   #1
HyperActive Warrior
Registered Member
War Room Member
 
Join Date: 2009
Location: USA
Posts: 116
Thanks: 39
Thanked 25 Times in 24 Posts
Blog Entries: 22
Default
Problem with archive in Wordpress
Share on: 
fb share twitter share gplus share more share

Hello Warriors,

In my site on Wordpress, I'm having issues with the archive file.

When I try to view a post on my site it just says "Archive for the (name of the post) Category"

Here is my site

Here is the archive.php code

<?php get_header(); ?>

<div class="auto_post">
<div class="alpha">


<div class="alpha_right">
<div class="kotak_post">

<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2 class="pagetitle">Archive for the ‘<?php single_cat_title(); ?>’ Category</h2>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h2 class="pagetitle">Posts Tagged ‘<?php single_tag_title(); ?>’</h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class="pagetitle">Author Archive</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="pagetitle">Blog Archives</h2>
<?php } ?>


<?php if (have_posts()) : ?>

<?php while (have_posts()) : the_post(); ?>

<div class="post_box" id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<span class="sing_m"><span class="tgl"><?php the_time('F jS, Y') ?></span> by <?php printf(__('<span class="by">By</span> %s', 'carrington'), '<a class="url fn" href="'.get_author_link(false, get_the_author_ID(), $authordata->user_nicename).'" title="View all posts by ' . attribute_escape($authordata->display_name) . '">'.get_the_author().'</a>') ?> # <?php the_category(', ') ?> </span>

<div class="entry">
<?php the_excerpt('Read the rest of this entry &raquo;'); ?>
</div>

<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ''); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>

</p>


</div>

<?php endwhile; ?>

<?php comments_template(); ?>

<?php else : ?>

<?php endif; ?>
</div>



</div><!--alpha_right -->


</div><!--alpha -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>

Any help would be greatly appreciated!
explosion is offline  
Unread 16th Aug 2010, 09:05 AM   #2
Active Warrior
War Room Member
 
joomlawala's Avatar
 
Join Date: 2010
Location: Dhaka, Bangladesh.
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Problem with archive in Wordpress
Share on: 
fb share twitter share gplus share more share

let me help you with it. email me.

Masud
Email me at: masud@softsubstation.com
[to start PSD-to-XHTML/CSS $70; PSD-to-Joomla/WP $150 only]
joomlawala is offline  
Unread 16th Aug 2010, 09:27 AM   #3
HyperActive Warrior
Registered Member
War Room Member
 
Join Date: 2009
Location: USA
Posts: 116
Thanks: 39
Thanked 25 Times in 24 Posts
Blog Entries: 22
Default
Re: Problem with archive in Wordpress
Share on: 
fb share twitter share gplus share more share

Sent you an email, thanks.
explosion is offline  
Unread 16th Aug 2010, 11:40 AM   #4
HyperActive Warrior
Registered Member
War Room Member
 
Join Date: 2009
Location: USA
Posts: 116
Thanks: 39
Thanked 25 Times in 24 Posts
Blog Entries: 22
Default
Re: Problem with archive in Wordpress
Share on: 
fb share twitter share gplus share more share

Problem solved.
explosion is offline  
Closed Thread


Bookmarks

Tags
archive, problem, wordpress


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 02:35 PM.