Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter altfg1

    (@altfg1)

    It worked. And once again, thanks for the tips.

    Oh, just saw this.
    Will do.
    Thanks again, Ipstenu!

    Thread Starter altfg1

    (@altfg1)

    I’m having trouble believing this myself, but I’ve actually managed to get the code working (via functions.php). Note: it had to be done in this particular order. Else, it didn’t work.

    if (function_exists(‘add_filter’))
    add_filter(‘excerpt_length’, ‘my_excerpt_length’);
    function my_excerpt_length($length) {
    if( is_home() ) {
    $length = 70;
    } else {
    $length = 900;
    }
    return $length;
    }

    if (function_exists(‘add_filter’))
    add_filter(‘excerpt_length’, ‘new_excerpt_length’);
    function new_excerpt_length($length) {
    if( is_archive() ) {
    $length = 55;
    }
    return $length;
    }

    Thread Starter altfg1

    (@altfg1)

    Uh-oh…

    Once I removed the “excerpt” code from the functions.php template (see below), the RSS feed has stopped going out in full. It’s now only a 55-word excerpt as well…

    How can I resolve this problem?

    The RSS feed *is* set for “full text.” Why the summary?
    https://www.altfg.com/blog/feed/ (IMDb gets only the feed’s description, which is 55 words or so…not enough for the IMDb to accept the submission)

    Any changes I can make to this functions.php code so I can reinsert it — to set # of words for archive excerpts while allowing the RSS feed to keep sending out the full text?

    if (function_exists(‘add_filter’))
    add_filter(‘excerpt_length’, ‘my_excerpt_length’);
    function my_excerpt_length($length) {
    return 900; // Or whatever you want the length to be.
    }

    Thread Starter altfg1

    (@altfg1)

    Once again, Ipstenu, thank you.

    I did the “excerpt” change.

    Many thanks!

    Thread Starter altfg1

    (@altfg1)

    I think I’ve found a solution for the tag/archive excerpts. Will confirm this once I check out site’s latest post on the IMDb. That’ll probably take another half hour until they update their feed.

    Thread Starter altfg1

    (@altfg1)

    Ipstenu,

    Thanks again. Much appreciated.

    Now, I’m quite ignorant when it comes to .php coding. I think I understand what you’re saying, but I’m wondering:

    a) there’s an archives.php template. If I change that, will that make the blog’s page 2, 3, 4, etc. show *only* the excerpt? (That would be great!)

    b) what coding would I have to change to ensure that only the excerpt would be shown on the archive/tag pages (please see php code below)? (I’ve checked out the link found in your previous reply, but there was nothing there about excerpts.)

    c) While I’m at it … is there a way to have the homepage show only excerpts — without the need for a plugin?

    Below is the “main” php code for the tag page:
    (and thanks again)

    <h1 class="page-title archive-title">Tag Archives: <span id="tag-title"><?php single_tag_title(); ?></span></h1>
    				<?php while ( have_posts() ) : the_post(); ?>
    
    				<!--BEGIN .hentry-->
    				<div id="post-<?php the_ID(); ?>" class="<?php semantic_entries(); ?>">
    					<h2 class="entry-title"><a>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    
    					<!--BEGIN .entry-meta .entry-header-->
    					<div class="entry-meta entry-header">
    						<span class="author vcard">Written by <?php printf( '<a>ID, $authordata->user_nicename ) . '" title="' . sprintf( 'View all posts by %s', $authordata->display_name ) . '">' . get_the_author() . '</a>' ) ?></span>
    						<span class="published">on <abbr class="published-time" title="<?php the_time( get_option('date_format') .' - '. get_option('time_format') ); ?>"><?php the_time( get_option('date_format') ); ?></abbr></span>
    						<span class="meta-sep">—</span>
    						<span class="comment-count"><a>"><?php comments_number( 'Leave a Comment', '1 Comment', '% Comments' ); ?></a></span>
    						<?php edit_post_link( 'edit', '<span class="edit-post">[', ']</span>' ); ?>
    					<!--END .entry-meta .entry-header-->
                        </div>
    Thread Starter altfg1

    (@altfg1)

    Ipstenu,

    Thank you for your response.

    I was wondering if there’s a way to modify the functions.php command to have it filter ONLY excerpts — NOT RSS feeds.

    Thanks again.

    I don’t mind the new design, but the change in fonts has become a “readability” issue.

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