I'm trying to make this php code run in a post. Using a plugin to enable the php to run.
Problem is I can't seem to get it to work no matter how I structure the statements :/
I'm sure it's something simple but I'm just not familiar enough with php yet to figure it out.
Any help would be greatly appreciated :)
[insert_php]if(!get_post_meta(get_the_ID()),'buy_status', true); echo "<h5 style="text-align: center;display: block;">"; echo "Sorry, this piece is sold."; else echo "<h5 style="text-align: center;display: none;">"; endif;[/insert_php] </h5>