Get title of wordpress post by SQL

1

Well, I need something like this:

$titulo = get_the_title( $post_id );
update wp_posts set post_content =
replace(post_content,'>Episódio','>$titulo Episódio');

I know it's completely wrong, but maybe it helps you understand better. I need to add the title of the post in a line of the same one by SQL command (in all posts will be done that).

    
asked by anonymous 09.08.2018 / 04:53

0 answers