• I’m very new to WordPress so I’ve been making changes very infrequently. However, as I’ve been posting new blogs, I’m realizing that my main page is getting longer an dlonger with no sign of ever stopping. I’m using iNove 1.0.2 and I have two questions concerning this.

    1- Is there a way to make the listings on the main page just short snippets of the article, or some write-up that I choose? I tried setting the Excerpt but nothing happened.

    2- Is there a way to limit the number of blogs that list on the main page? I would prefer to limit the number at this point because I’m not writing that often, but in the future I may prefer to limit the blogs by date (for example, only show the past two weeks).

    3- I am registering my blogs under the main category of my site and a sub category, but only the main category is shown in the panel to the right. I would like to show the sub categories, also, since I am not the only author (we choose subs by author at this point).

    Can anyone give me some help with these questions?

    Thanks in advance!

    -Will

Viewing 4 replies - 1 through 4 (of 4 total)
  • 1. the_excerpt_reloaded (plugin) works really well for this. It has been revised here and the original documentation is here.

    2. WP Admin > Settings > Reading > find the setting on this page.

    Thread Starter ssmith147

    (@ssmith147)

    I’ve downloaded, uploaded and activated the plugin, but I’m not seeing anything different on the ‘Settings > Reading’ page than I saw before. The author’s page mentions something about activating it in The Loop. I’ve read the docs on The Loop from WordPress, but I’m concerned about editing the index.php file when I’m no all that familiar with PHP. Plus, I’m not even sure I should be doing that at all in this case.

    Any additional direction you can offer?

    Thread Starter ssmith147

    (@ssmith147)

    Okay, I think my problem really is in The Loop, so please disregard my previouspost. However, when I tried playing with the index.php file, I got an odd result. I placed the proper tags between The Loop, but instead of getting just an excerpt on the main page, I got the excerpt followed by the actual post. I’m sure this is because of the layout of the code, and that some sort of simple boolean check would resove it. But as I mentioned, I’m no good with PHP. If possible, could someone help me with editing the following code from the iNove theme so that the excerpt alone will show up on the main blog page, but the full article text will show up on every other page?

    Here’s what I’ve got:

    <?php if (have_posts()) : ?>
    	<?php while (have_posts()) : the_post(); update_post_caches($posts); ?>
    		<div class="post" id="post-<?php the_ID(); ?>">
    			<h2><a class="title" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    			<div class="info">
    				<span class="date"><?php the_time(__('F jS, Y', 'inove')) ?></span>
    				<div class="act">
    					<span class="comments"><?php comments_popup_link(__('No comments', 'inove'), __('1 comment', 'inove'), __('% comments', 'inove')); ?></span>
    					<?php edit_post_link(__('Edit', 'inove'), '<span class="editpost">', '</span>'); ?>
    					<div class="fixed"></div>
    				</div>
    				<div class="fixed"></div>
    			</div>
    			<div class="content">
    				<?php the_content(__('Read more...', 'inove')); ?>
    				<p class="under">
    					<?php if ($options['categories']) : ?><span class="categories"><?php the_category(', '); ?></span><?php endif; ?>
    					<?php if ($options['tags']) : ?><span class="tags"><?php the_tags('', ', ', ''); ?></span><?php endif; ?>
    				</p>
    				<div class="fixed"></div>
    			</div>
    		</div>
    	<?php endwhile; ?>
    
    <?php else : ?>
    	<div class="errorbox">
    		<?php _e('Sorry, no posts matched your criteria.', 'inove'); ?>
    	</div>
    <?php endif; ?>

    Thanks for any help that can be offered with this.

    -Will

    Sorry I didn’t make myself more clear at first — I was not writing steps, I was responding to your list. So, #1, after you install the_excerpt_reloaded plugin, here’s what you do:

    In your code you will see <?php the_content(__('Read more...', 'inove')); ?>. In WordPress you can replace the_content with the_excerpt (docs), but the_excerpt_reloaded gives you more control over the excerpt.

    So, replace <?php the_content(__('Read more...', 'inove')); ?> with <?php the_excerpt_reloaded(); ?> and then use the plugin’s documentation to tweak the output using different parameters.

    WP Admin > Settings > Reading has nothing to do with the_excerpt. The default setting for WordPress is to show the most recent 5 (I think) articles on the homepage. You can change this to 1 or 100. Whatever you like.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to shorten the blogs on the main page’ is closed to new replies.