WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Only Post Titles show up after switching from MT (6 posts)

  1. turbanhead
    Member
    Posted 8 years ago #

    Just made the switch from MT and imported my MT psost to WP 1.5. I did a one click install using dreamhost and everything seems to be working well until i changed to the Blix template.

    All my posts only show up with a title on my main page:
    http://www.turbanhead.com/weblog/

    If you click on the title of the post, it takes you to the post page and the full post appears. What can I do to fix this?

    Since i am new here, please go gentle with me when you answer my question

  2. Beel
    Member
    Posted 8 years ago #

    Sounds like you may need to change the_excerpt() to the_content() in your index file.

    Do all your posts have "--" as the excerpt?

  3. turbanhead
    Member
    Posted 8 years ago #

    Yes. I'm looking at all my archived posts and only the Title of the post shows up.

    what code do i change?

  4. Beel
    Member
    Posted 8 years ago #

    I could be wrong, but it looks like all the posts imported have a "--" in the excerpt. The problem is, on your archive page you will probably want an excerpt and not the full post.

    For now you can look in whatever pages your theme uses (usually index.php and archive.php) and change "the_excerpt()" to "the_content()".

    A permanent solution would be to clear all your excerpts in mysql, assuming my hunch about the problem is correct (that errant "--" was placed in all your post excerpts).

  5. turbanhead
    Member
    Posted 8 years ago #

    Thanks. How does one "clear all the excerpts in mysql"? (That is how do i edit that file?

  6. Beel
    Member
    Posted 8 years ago #

    Well, assuming what I surmise is correct:
    1. back up your database
    2. back up your database
    3. back up your database
    4. In phpMyAdmin run something like this:
    update wp_posts set post_excerpt = replace(post_excerpt,'text-to replace','replace-with=this')

Topic Closed

This topic has been closed to new replies.

About this Topic