Wednesday, November 10, 2010

Day 58 - Learn Something New Every Day

Photographer: jscreationzs

Do you have days when everything just comes together?  It is only 8:00 a.m. and today has already proven to be such a day.  

I am on Day 44 of the 100 Day Challenge and today's lesson is on continued learning.

Early in this Challenge I set several goals for myself.

One included helping the local food bank.  As part of that task, I am helping a food bank organizer create a new web site.  He wanted a change made in the format on the page that I had no idea how to accomplish.

So it was "back to school" for me, only this time my teachers are the pros that lurk in the Help Form at Wordpress.org.  A quick search in the knowledge base lead  me to the following question and answer:

 

CHANGE the_excerpt to the_content! (2 posts)

  1. lendikkan
    Member
    Posted 2 months ago #

    I need help! When you look under the category and archive pages you can see only an excerpt from your posts, I want everything to be seen, including pictures. I have Understood that it is something about the codes the_excerpt the_content but i cannot find them anywhere in my templates. I'm using the theme "Twenty Ten" and would love some help.
    My website is http://llinda.se

  2. alchymyth
    Member
    Posted 2 months ago #

    it is in loop.php:

    <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?>

    change the first line in this area to:

    <?php if ( is_search() ) : // Only display excerpts for search. ?>

    that would still leave the excerpt to show in search results.

And lo and behold I now know how to edit a loop.php so that the pictures will not be clipped when someone selects a category from the menu bar.  I had previously managed to edit this file to extend the excerpt to more characters at the request of another friend who I was helping with her site (SanFelipePesoSaver) but had up til now failed to be able to get the images included.  Now both parties are happy and I have learned something new today.

As an added bonus, I also have a topic to share with you my reader in this article which completes my goal oriented task of posting daily for a year.
This lesson wasn't a tough one for me.  I have always considered myself a "professional student."   The fact that it took me 39 years to get a Bachelor's degree was confirmation of that.  When asked, I told folks I was on the 40 year program but graduated a year early.
In all truth, I just love learning new stuff.   Since graduating in 2004, I have just exchanged the internet for the college campus.

No comments: