add post excerpt to post title if blank
-
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
}
…welp
-
Are you talking about a WP.com 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.