ThemeShaper Forums » Power Blog

[closed]

Full posts showing up on homepage.

(9 posts)
  1. I installed Thematic Power Blog last night and I've been tinkering with it since 8:30 this morning. I just love it. However, I have a small problem that I don't know how to fix since I'm not that great with php.
    On the front page, all the posts show full text of the post and not an excerpt with something "..." or "read more..." at the end of a preview excerpt. Is there a way to fix that? If there's an option for that in wordpress, I just couldn't find it. I'd greatly appreciate any help.
    You can check the blog at http://samena.me

    If there is a php code that I need to fix, could someone also tell me in which file I'd have to fix and in what folder it should be in? Even though I'm learning it, I'm just scared of messing with php files.

    Also, I wanted to make the header image to be a link to the homepage. Is there anyway to do that?

    I just set that blog up, if you have comments on if I should fix or change something, please let me know. I would greatly appreciate all the help.
    Thanks!
    -Armen

    Posted 4 years ago #
  2. Typically this is governed In the Settings of your WP dashboard. Go to Settings>Reading then under "For each article in a feed, show" ... I suspect it is set to "full text" whereas you want Summary. I hope that helps.

    Posted 4 years ago #
  3. I tried that but it doesn't seem to work. As of this moment, that option is set to summary but you can still see the whole post on the front page. Anything else you can think of?

    Posted 4 years ago #
  4. I've tried to create the same problem but it seems to be fine when you access the blog using a link like this: http://samena.me/category/downloads/

    It shows the excerpt when you access it. But, when you access the homepage, the whole post shows up. I'm assuming it has to be changed somewhere in the theme files. But I have no idea where.

    Posted 4 years ago #
  5. @Armen: If I remember correctly, you'll probably need to add this to the functions.php file for PowerBlog:

    function childtheme_content($content) {
    	if ( is_home () ) {
    		$content= 'excerpt';}
    	return $content;
    }
    add_filter('thematic_content', 'childtheme_content');

    Courtesy of Gene on: http://forums.themeshaper.com/topic/excerpts-on-home-page#post-10621

    By default, I think Thematic is setup to show full posts on the front/homepage and e.g. excerpts on the category page, and as thematic_content hasn't already been 'filtered' in the Power Blog functions.php, this means that you can add the filter above.

    Posted 4 years ago #
  6. @Flick:
    It worked! Thank you so much! I will thank Gene too!
    I've had almost everything sorted except for that part and now it's all done.
    I've been refreshing this page about every five minutes for a reply. haha.

    And yes, you are right. Thematic is set to show full posts on the front page. I installed default themes and they gave me the same outcome. So, I figured it must be changed within the theme file.

    How do I change this thread into "Resolved"? Or the moderators are supposed to do that?

    Posted 4 years ago #
  7. @Armen: Am glad it worked for you. One thing I have just remembered is that you could always use the 'More' tag to control when the 'read more' tag appears.

    Otherwise the excerpt is usually setup to display up to the first 55 words I think, but you can modify this using another filter: WordPress Codex - Excerpt Length.

    Posted 4 years ago #
  8. jdcohan
    Member

    @Armen: Thanks for the question. And @flick: Thanks for the answer!

    Posted 4 years ago #
  9. @Armen - Exactly the fix I was looking for. Thanks.

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.