Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bensylevine

    (@bensylevine)

    Would you mind taking a look at my archive.php, I’ve pasted it below. There is not <?php if( get_the_content() ) : ?> but that similar call may just have a different wording for me. I didn’t want to screw around too much though. Any thoughts on what to do given what my archive.php looks like? Thanks a million.

    Here is my archive.php:

    <?php get_header(); ?>
    
    <div class="colored-line"></div>
    
    <section id="main">
    	<div class="shell shell-inner-page">
    		<div class="container clearfix left">
    			<section id="content" <?php post_class('left'); ?>>
    				<article class="entry">
    					<section>
    
    						<?php js_breadcrumbs($post->ID); ?>
    
    						<h1><?php $post = $posts[0];
    							if (is_home()):
    								echo get_the_title( get_option('page_for_posts', true) );
    							elseif (is_category()):
    								single_cat_title();
    							elseif(is_tag()) :
    								_e('Tagged','crowdpress'); ?>: “<?php single_tag_title(); ?>”<?php
    							elseif (is_day()) :
    								_e('Archive for','crowdpress'); echo ' '; the_time('F jS, Y');
    							elseif (is_month()) :
    								_e('Archive for','crowdpress'); echo ' '; the_time('F, Y');
    							elseif (is_year()) :
    								_e('Archive for','crowdpress'); echo ' '; the_time('Y');
    							elseif (is_author()) :
    								_e('Author Archive','crowdpress');
    							else :
    								_e('Archives','crowdpress');
    							endif; ?>
    
    						</h1>
    
    						<?php if ( have_posts() ) : ?>
    
    							<?php while (have_posts()) : the_post(); ?>
    
    								<?php get_template_part('single-post-block'); ?>
    
    							<?php endwhile; ?>
    
    						<?php endif; ?>
    
    						<?php js_get_pagination(); wp_reset_query(); ?>
    
    					</section>
    				</article>
    
    			</section>
    			<aside class="right">
    				<?php get_sidebar(); ?>
    			</aside>
    			<div class="cl"></div>
    
    		</div>
    	</div>
    </section>
    
    <?php get_footer(); ?>
    Thread Starter bensylevine

    (@bensylevine)

    Thanks jelly_bean for the quick response!

    Not being a coder, that looks intimidating. Would I put that code in my search.php?

    And do you think that will work for my problem? The problems seems different.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)