ThemeShaper Forums » Thematic

[closed]

Problem with archives excerpts in versión 0.9.7.7

(6 posts)
  • Started 12 years ago by alexgagi
  • Latest reply from alexgagi
  • This topic is not resolved

Tags:

  1. I have a strange problem I can't solve nor understand (surely my fault). I have Thematic 0.9.6.2. installed and the problem appears when I install the actualization to the 0.9.7.7. I have searched the forums for the answer, but I couldn't find a solution.
    The problem: In my web I have all the archives section (I mean categories, tags, search, authors) showing the excerpt and the featured image, as you can see for example here: Jazz category.
    When I install new versión, instead of showing excerpt, it's showing the entire post. If I reinstall 0.9.6.2. the problem is gone.

    Any idea of the reason? Any other information you need to help me?

    Thanks a lot in advance.

    Álex.

    Posted 12 years ago #
  2. hi alex- it has to be something in your child's functions.php thematic displays excerpts and post thumbnails by default on archive pages. if you take everything out of your functions.php do you still have this problem?

    also try using the latest stable release of thematic:

    http://developing.thematic4you.com/thematic-development-release/

    Posted 12 years ago #
  3. Thanks helgatheviking, I'll try and tell you the result.

    Posted 12 years ago #
  4. OK, I have done your suggestions and the result is:
    * If I install the last stable release I have the same problem: no excerpts but posts show till the Read more tag.
    * If I leave my functions.php empty the web shows the excerpt as should do.

    So... the problem is in my child theme functions, because something has changed in thematic that makes the code that worked before to break.
    I have identified that the problem is in the loop that I changed, but I have looked at it and I cannot say what the exact problem is. My loop is this:

    // The Category Loop
    //----------------------------------------------------------------------------------
    function jazztk_category_loop() {
    		while (have_posts()) : the_post(); ?>
    			<div class="wrap-archive-loop">
    				<div id="post-<?php the_ID(); ?>" class="archive-loop <?php thematic_post_class(); ?>">
    				<?php thematic_postheader(); ?>
    					<div class="entry-content">
    					<?php thematic_content(); ?>
    					</div>
    				<?php thematic_postfooter(); ?>
    				</div><!-- .post -->
    				<div class="feat-image"> <?php the_post_thumbnail(array(150,150)); ?> </div>
    			</div>
    		<?php endwhile;
    }
    // Removes thematic_index_loop
    function remove_thematic_actions3() {
        remove_action('thematic_categoryloop','thematic_category_loop');
    }
    // Call 'remove_thematic_actions' during WP initialization
    add_action('init','remove_thematic_actions3');
    // Add our custom function to the 'thematic' phase
    add_action('thematic_categoryloop', 'jazztk_category_loop');
    // End of the category Loop jazztk

    Any idea? Thanks a lot for your effort.

    Álex

    Posted 12 years ago #
  5. though your way ought to work (i think) try dropping all the add and remove actions and rename

    jazztk_category_loop()

    to

    childtheme_override_category_loop()

    so just

    childtheme_override_category_loop() {
    		while (have_posts()) : the_post(); ?>
    			<div class="wrap-archive-loop">
    				<div id="post-<?php the_ID(); ?>" class="archive-loop <?php thematic_post_class(); ?>">
    				<?php thematic_postheader(); ?>
    					<div class="entry-content">
    					<?php thematic_content(); ?>
    					</div>
    				<?php thematic_postfooter(); ?>
    				</div><!-- .post -->
    				<div class="feat-image"> <?php the_post_thumbnail(array(150,150)); ?> </div>
    			</div>
    		<?php endwhile;
    }
    Posted 12 years ago #
  6. Thanks again, but nope. I have tried your code (by the way, I've added 'function' before your code) but nothing changes.
    Your code is much simpler that mine, but the results are the same, still the complete post till the read more... just as in the home page.
    Arghh! I suppose it will be a very silly thing, but I can't imagine what.
    Any other idea?

    Thanks

    Álex.

    Posted 12 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.