+ Reply to Thread
Results 1 to 7 of 7




  

Thread: Need Help with Character Count Limit for Summaries

      
  1. #1
    Grand Masters KentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to all KentuckySlone's Avatar
    Join Date
    April 27, 2007
    Location
    Kentucky
    Posts
    821
    Rep Power
    6
    Feedback Score
    0

    Question Need Help with Character Count Limit for Summaries

    I am working with a theme that shows summaries of the posts on the home page. Usually there is an excerpt.php or similar file where you can control the character count. But in this theme there is nothing like that.

    The code does call for an excerpt -- <?php the_excerpt(__('Read More »'));?>

    Does anyone have any ideas on how I could change the character limit for the excerpt/summaries?

  2. #2
    Jedi Master JHalstead will become famous soon enoughJHalstead will become famous soon enoughJHalstead will become famous soon enough JHalstead's Avatar
    Join Date
    January 3, 2008
    Location
    OKC, OK - USA
    Posts
    147
    Rep Power
    5
    Feedback Score
    0

    Default Re: Need Help with Character Count Limit for Summaries

    Quote Originally Posted by kentuckyslone View Post
    I am working with a theme that shows summaries of the posts on the home page. Usually there is an excerpt.php or similar file where you can control the character count. But in this theme there is nothing like that.

    The code does call for an excerpt -- <?php the_excerpt(__('Read More »'));?>

    Does anyone have any ideas on how I could change the character limit for the excerpt/summaries?

    Without seeing the exact code I cannot be totally sure. But one option would be to return part of the string. Using the substr() php function for instance.

    Somewhere their is a "the_excerpt" function laying round. That's what you would need to find and edit. But it does exist; It's being called, it has to exist or it would create an error.

    If this theme is free and you can link me to it I would be more than happy to find and fix the function for you.

    Good Luck, let me know

  3. #3
    Grand Masters KentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to all KentuckySlone's Avatar
    Join Date
    April 27, 2007
    Location
    Kentucky
    Posts
    821
    Rep Power
    6
    Feedback Score
    0

    Default Re: Need Help with Character Count Limit for Summaries

    Maybe I am just too old and blind but I searched through everything and havent been able to figure it out. I really appreciate your taking a look. It is a decent theme but the summaries are just too brief.

    I got the theme at Wp Themes Magazine | Wp-Them.es

  4. #4
    Will Work For Coffee :-} Big Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond repute Big Dan's Avatar
    Join Date
    October 14, 2006
    Location
    New York
    Posts
    1,954
    Rep Power
    8
    Feedback Score
    0

    Default Re: Need Help with Character Count Limit for Summaries

    KY: Try when typing the post to insert the "Read more" link in the editor. That should over ride the template's default.

    If that doesn't help I'll download the theme and look at the source.
    Big Dan
    DJ Talk - Where DJ's meet! | Almost Geek - Geeky Tutorials and Stuff | Got Email Questions?

  5. #5
    Grand Masters KentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to all KentuckySlone's Avatar
    Join Date
    April 27, 2007
    Location
    Kentucky
    Posts
    821
    Rep Power
    6
    Feedback Score
    0

    Default Re: Need Help with Character Count Limit for Summaries

    Quote Originally Posted by Big Dan View Post
    KY: Try when typing the post to insert the "Read more" link in the editor. That should over ride the template's default.

    If that doesn't help I'll download the theme and look at the source.
    All the posts have the "read more" in them, the summaries are cutting them much shorter - 200 characters I think

  6. #6
    Jedi Master JHalstead will become famous soon enoughJHalstead will become famous soon enoughJHalstead will become famous soon enough JHalstead's Avatar
    Join Date
    January 3, 2008
    Location
    OKC, OK - USA
    Posts
    147
    Rep Power
    5
    Feedback Score
    0

    Default Re: Need Help with Character Count Limit for Summaries

    Quick update...

    The "the_excerpt" function. Is a wordpress default. (Sorry I assumed it came in the theme.) I'm currently looking at wordpress code and site to see if it's customizable. I'll get back with you asap. Sorry about the wait, I got intrigued with facebook


    As much as I be grudge saying it. Google is your friend

    The answer is three fold.

    1. You could download a plug-in that will give you a custom "excerpts" function. For example, How to Customize WordPress Excerpts. I'm sure their are others this is just one of Google's top.

    OR

    2. You could create the function yourself in the theme template files Changing the length of the_excerpt() in Wordpress - Chris Meller.

    OR

    3. You could find and edit the "the_excerpt" core function of wordpress and the excerpts would be longer no matter what theme you use.

    But I personally like option two because it seams the easiest and less harmful if you ever change themes. I don't care for plug-ins when not necessary. And editing wordpress core functions means you have a custom file to keep back when you update wordpress versions.

    If you would like to go for option two but don't want to get your hands dirty. (or the how-to is out dated) Let me know and I'll set up the theme function file for you with instructions on how to use it.
    Last edited by JHalstead; Feb 4th, 2009 at 8:35 pm.

  7. #7
    Grand Masters KentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to allKentuckySlone is a name known to all KentuckySlone's Avatar
    Join Date
    April 27, 2007
    Location
    Kentucky
    Posts
    821
    Rep Power
    6
    Feedback Score
    0

    Default Re: Need Help with Character Count Limit for Summaries

    Thanks a lot for that, I will check into it and get to work on it right away.

    Thanks again for taking the time to check all this out.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. 3 character domain - i6l.net
    By fedder in forum Domains
    Replies: 0
    Last Post: Aug 21st, 2007, 5:52 am
  2. Upload Limit Workarounds?
    By West in forum Web Hosting
    Replies: 4
    Last Post: Dec 12th, 2006, 7:44 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
WebTalkForums
WebTalkForums
Recent Forum Threads