• Resolved ghansen

    (@ghansen)


    I just launched a redesign for a site – https://georginesaves.com – and as you can see, under “recent posts” on the homepage (as well as Top Rated, Most Commented, Most Viewed) the links within the body of the posts aren’t active. They’re not even in the HTML code. I have the posts to post as full posts, not summaries, and would like the links to show up here. The links DO work when you click the story’s headline and view the actual post page, but this isn’t an ideal user experience for this audience.

    Any suggestions of what I should do?

    BTW, I’m using “RedTweet” theme from SkinPress, and so far haven’t gotten any responses from their help forum.

    Thanks!!!

Viewing 9 replies - 1 through 9 (of 9 total)
  • I’d suggest adding a conditional “more” link to those posts. Something added to the theme’s functions.php file based on Twenty Ten’s handling of this might work:

    function my_continue_reading_link() {
    	return ' <a href="'. get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>' ) . '</a>';
    }
    function my_auto_excerpt_more( $more ) {
    	return ' &hellip;' . my_continue_reading_link();
    }
    if (is_home() add_filter( 'excerpt_more', 'my_auto_excerpt_more' );
    Thread Starter ghansen

    (@ghansen)

    Thanks esmi. This is something I’d like to add as well, and will take a stab at it! But if anyone out there has a solution for the links, LMK ??

    Ah! Sorry. I misunderstood your question. It seems that your theme is using the_excerpt() which strips all formatting out of the post teaser on that page. You could try editing index.php and replacing the_excerpt() with the_content() but not only would you then have to use the <!--more--> in every post, you’d have to be pretty careful where you added the more tag – otherwise the display could start to break up and look messy.

    Another option would be to use the Optional Excerpt box for each post to create a custom excerpt that would retain its links & formatting. But the same applies here. Get the size of the custom excerpt wrong and the display could start to fragment.

    Thread Starter ghansen

    (@ghansen)

    Thanks! You rule… I’m rather savvy with HTML/CSS (not so much PHP/JS etc.) so I’m hoping I won’t have an issue controlling layout. I will work on this later this morning and let you know how it goes.

    Thread Starter ghansen

    (@ghansen)

    Interestingly enough, my index.php file doesn’t have the_excerpt() or the_content(). This is what I see for the posts, any thoughts?:

    <?php $i=0; while (have_posts()) : the_post(); $i++; ?>
    					<div class="irecent_post" id="irecent_post-<?php the_ID(); ?>">
    						<div class="irecent_post_title">
    							<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php if ( function_exists('the_title_attribute')) the_title_attribute(); else the_title(); ?>"><?php the_title(); ?></a></h3>
    							<div class="info">Posted by <b class="author"><?php the_author() ?></b> at <?php the_time() ?> on <?php the_time('F d Y') ?></div>
    							<?php if(function_exists('the_ratings')) { ?><div class="rate"><?php the_ratings();?></div><?php } ?>
    						</div>
    
    						<div class="irecent_post_entry">
    							<?php
    									$thumbnail = get_post_meta($id, 'image_100_100', true);
    
    									if( isset($thumbnail) && !empty($thumbnail) ):
    										?><img src="<?php echo $thumbnail; ?>" alt="<?php echo $post_title; ?>" /><?
    									endif;
    									the_content_limit($recents_posts_char_limit, '');
    							?>
    						</div>
    					</div>
    					<?php

    The line in this case is the_content_limit($recents_posts_char_limit, '');. That could be replaced with the_content(); or the_excerpt();.

    Thread Starter ghansen

    (@ghansen)

    Woo-hoo! At first I didn’t think it worked because the links weren’t styled, but I saw it in the code and was able to update the CSS. PLUS the thumbnails now show up.

    Thanks you SO MUCH for your help!!!

    No problem ??

    Thread Starter ghansen

    (@ghansen)

    D’oh! I looks like my “older entries” link at the end of recent posts isn’t working now… could this be related to the fix we just made? I’m pretty sure I had it working before.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Links not active under recent posts – help’ is closed to new replies.