mrtwork
Member
Posted 4 years ago #
Hi, i want to use store the string from excerpt field in wordpress post table to variable and this is what i'm writing:
$excerpt_str = the_excerpt()
echo $excerpt_str
i want to store the string from excerpt to the variable excerpt_str,
but it doesn't work the way it suppose to be...
any solution, thanks.....
ephramzerb
Member
Posted 4 years ago #
Have you tried get_the_excerpt() ?
mrtwork
Member
Posted 4 years ago #
it works, thanks
but here's the tricky part. I want to use that with sql string to write another plugin
$result = mysql_query("SELECT * FROM aniwo_posts
WHERE aniwo_content='$excerpt_str'");
and the result doesn't come out. Any solutions? thanks..