• Resolved tduncan

    (@tduncan)


    I searched for this, but wasn’t finding anything. My apologies if this has been asked before.

    I’m exporting entries from MT 2.661 to WordPress 2.3.1, and for the most part everything is showing up perfectly. However, the entry text is not showing on any archive pages (either category or monthly) except for the default (‘Hello World’) entry.

    Perfectly fine index
    https://clubjade.net/wordpress/

    Category/Date issue
    https://clubjade.net/wordpress/?cat=13
    https://clubjade.net/wordpress/?m=200409

    I’m using Powazek’s DePo Clean theme, and this isn’t the case on his site. However, when I switch to another downloaded theme, the same thing happens on the index as well. (Everything is a-okay on the defaults.) And I don’t understand enough of the code yet to figure out why it works one but not the others. I suppose it might have something to do with these themes not being optimized for 2.3.1?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Bringing my (albeit limited) powers of deductive reasoning to bear on this, I think I know the answer.

    The theme you have uses archive.php for the template to display dated and category archives, and that template (in the case of this theme) implements the_excerpt() rather than the_content() to display post content (a way of keeping page size to a minimum on ‘back’ pages).

    What I suspect is that during the import, something — could easily have been a return character or single space — was slipped into the excerpt fields of your MT posts. This would cause WordPress to use the excerpt instead of summarizing the post content on your archival pages.

    If you have access to your database through a SQL tool of some sort, a quick query that would solve this problem is:

    UPDATE wp_posts SET post_excerpt = '' WHERE post_excerpt NOT LIKE '';

    If using a different table prefix than the default (wp_), change the name of wp_posts to reflect this.

    Thread Starter tduncan

    (@tduncan)

    It’s been so long since I configured the original MT setup I forgot it even included an excerpt option… Anyway, it’s a return character. I wonder if it’s safe to just remove that from the import files entirely, as we never used it…

    I’m not quite sure where/how to edit the database, but I did swap out the_excerpt() with the_content(), at least for the moment. And I know what to look for in those other themes. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Missing entry text?’ is closed to new replies.