add post excerpt to post title if blank in database
-
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
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘add post excerpt to post title if blank in database’ is closed to new replies.