WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] how to allow posts to how FULL content and not preview (8 posts)

  1. veranopage
    Member
    Posted 4 years ago #

    Please help me achieve this, as I would like to have posts to show full content, thank you.

  2. Bane Unreinen
    Member
    Posted 4 years ago #

    It sounds like you want the full article to display on either the category/archive sections or on the homepage. If so, then look in your theme files (home.php, category.php and/or archive.php) for 'the_excerpt' and replace it with 'the_content'.

    Please Note: always make a backup of your existing work before making modifications!

  3. veranopage
    Member
    Posted 4 years ago #

    There is no excerpt code only...

    <div class="post_content">
    							<?php the_content(__('READ THE FULL ARTICLE >>',
  4. Bane Unreinen
    Member
    Posted 4 years ago #

    Will you provide a link pls?

  5. veranopage
    Member
    Posted 4 years ago #

    resolved

  6. veranopage
    Member
    Posted 4 years ago #

    Please see below post.

  7. veranopage
    Member
    Posted 4 years ago #

    Its not resolved, please view the following, what do I change to make sure that it doesnt how FULL post?

    <?php get_header(); ?>
    <?php
    	$count = 0;
    ?>
    
    <?php if (have_posts()) : ?>
    	<div class="fullbox_excerpt">
    		<div class="fullbox_content">
    			<h3>
    				<?php single_cat_title(); ?>
    			</h3>
    
    			<?php while (have_posts()) : the_post(); ?>
    
    				<?php
    				if($count > 0)
    				{
    				?>
    				<div class="excerpt_separator"></div>
    				<?php
    				}
    				?>
    
    				<div class="excerpt_meta" id="post-<?php the_ID(); ?>">
    					<div class="excerpt_desc">
    						<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
    						<?php cutstr($post->post_content, 500); ?>
    					</div>
    					<div class="excerpt_more"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="more-link"><?php _e('READ THE FULL ARTICLE >>', 'theme'); ?></a> </div>
    				</div>
    
    				<?php $count++; ?>
    			<?php endwhile; ?>
    
    		</div>
    		<div class="fullbox_footer"></div>
    	</div>
    	<div id="post-navigator">
    	<?php if (function_exists('wp_pagenavi')) : ?>
    	<?php wp_pagenavi(); ?>
    	<?php else : ?>
    	<div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;', 'theme')); ?></div>
    	<div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries', 'theme')); ?></div>
    	<?php endif; ?>
    	</div>
    <?php else: ?>
    	<div class="fullbox">
    		<div class="fullbox_header"></div>
    		<div class="post_message"><?php _e('Sorry. There are no post available for selected category.', 'theme'); ?></div>
    		<div class="fullbox_footer"></div>
    	</div>
    <?php endif; ?>
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Also important to note that I removed the name of the theme, and out in the text "theme", as to not draw the focus off, because I dont believe this to be a theme issue.

  8. veranopage
    Member
    Posted 4 years ago #

    I think the answer is towards the bottom of the code but I cant wrap my head around it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.