add post excerpt to post title if blank

  • Author
  • #242521


    I have been using wordpress for a few years and have never added titles to my posts.
    I would like to use like a 5 word post excerpt from each post to fill in the post title field in the database if it is blank.

    so it would be like:

    if have posts{
    if $querypost(title)=” {post_excerpt()=$querypost(title)

    write the new title to the database





    Are you talking about a hosted blog or your blog that’s hosted elsewhere?

    This forum is only for blogs hosted here at wordpress.COM. If you are using WordPress on another host, then you need to visit the forums at wordpress.ORG.

The topic ‘add post excerpt to post title if blank’ is closed to new replies.