Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter crisw

    (@crisw)

    Thanks a ton! Appreciate the timely support!

    Thread Starter crisw

    (@crisw)

    Ah, brilliant! Thank you very much! Is there a way to get the same behavior on the archive pages? CW

    Thread Starter crisw

    (@crisw)

    I’m pretty sure this is the line of code to replace, but I can’t seem to get the syntax correct.

    <div id="content-<?php the_ID(); ?>" class="entry-content clearfix">
    		<?php if( ( is_category() || is_archive() || is_home() ) && has_excerpt() ) { ?>
    			<?php the_excerpt( ); ?>
    			<a href="<?php echo get_permalink(); ?>"><?php _e( 'Continue Reading...', 'standard' ); ?></a>
    		<?php } else { ?>
    			<?php the_content( __( 'Continue Reading...', 'standard' ) ); ?>
    		<?php } // end if/else ?>

    Thread Starter crisw

    (@crisw)

    Here is the index.php…I’ve tried putting it in different places, but it just ends up hosing up the site. Again, I appreciate the help!

    <?php
    /**
     * The template for starting The Loop and rendering general content features such as the breadcrumbs, pagination, and sidebars. Uses
     * get_template_part to render the appropriate template based on the current post's format.
     *
     * @package Standard
     * @since 3.0
     */
    ?>
    
    <?php get_header(); ?>
    <?php $presentation_options = get_option( 'standard_theme_presentation_options' ); ?>
    
    <div id="wrapper">
    	<div class="container">
     		<div class="row">
    
    			<?php if ( 'left_sidebar_layout' == $presentation_options['layout'] ) { ?>
    				<?php get_sidebar(); ?>
    			<?php } // end if ?>
    
    			<div id="main" class="<?php echo 'full_width_layout' == $presentation_options['layout'] ? 'span12 fullwidth' : 'span8'; ?> clearfix" role="main">
    
    				<?php get_template_part( 'breadcrumbs' ); ?>
    
    				<?php if ( is_archive() ) { ?>
    	                <div id="archive-page-title">
    	                    <h3>
    	                        <?php _e( 'Archives For ', 'standard' ); ?>
    	                        <?php if( standard_is_date_archive() ) { ?>
    	                        	<?php echo standard_get_date_archive_label(); ?>
    	                    	<?php } elseif ( is_author() ) { ?>
    
    	                    		<?php
    	                    			$author_data = standard_is_using_pretty_permalinks() ?
    	                    				get_userdata( get_query_var( 'author' ) )  :
    	                    				get_userdata( user_trailingslashit( get_query_var( 'author' ) ) );
    	                    			echo $author_data->display_name;
    	                    		?>
    
    	                        <?php } elseif ( '' == single_tag_title( '', false ) ) { ?>
    	                            <?php echo get_cat_name( get_query_var( 'cat' ) ); ?>
    	                        <?php } else { ?>
    	                            <?php echo single_tag_title() ?>
    	                        <?php } // end if/else ?>
    	                    </h3>
    	            <?php if( '' != category_description() ) { ?>
    	                       <?php echo category_description(); ?>
    	                    <?php } // end if ?>
    	                </div>
    	            <?php } // end if ?> 
    
    				<?php if ( have_posts() ) { ?>
    
    					<?php while ( have_posts() ) { ?>
    						<?php the_post(); ?>
    						<?php get_template_part( 'loop', get_post_format() ); ?>
    					<?php } // end while ?>
    
    					<?php get_template_part( 'pagination' ); ?>
    
    				<?php } else { ?>
    
    					<article id="post-0" class="post no-results not-found">
    						<header class="entry-header">
    							<h1 class="entry-title"><?php _e( 'Page or resource not found', 'standard' ); ?></h1>
    						</header><!-- .entry-header -->
    						<div class="entry-content">
    							<p><?php _e( 'No results were found.', 'standard' ); ?></p>
    							<?php get_search_form(); ?>
    						</div><!-- .entry-content -->
    					</article><!-- #post-0 -->
    
    				<?php } // end if/else ?>
    			</div><!-- /#main -->
    
    			<?php if ( 'right_sidebar_layout' == $presentation_options['layout'] ) { ?>
    				<?php get_sidebar(); ?>
    			<?php } // end if ?>
    
    		</div><!-- /row -->
    	</div><!-- /container -->
    </div> <!-- /#wrapper -->
    
    <?php get_footer(); ?>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use a pastebin. As it stands, your posted code may now have been permanently damaged/corrupted by the forum’s parser.]

    Thread Starter crisw

    (@crisw)

    Thank you!

    I assume this would go in the theme function code? Sorry, I’m not a programmer.

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