I have a plugin that displays facebook feed on a page.
Whenever there’s a picture attached to the post, it should display it in the feed on my page.
Here’s the code:
{exp:fbooker:data who="username" limit="15" pics="yes"}
{dateAdded}
{pic} {user}
{post} {if photo != ""} {photo} {/if}
{/exp:fbooker:data}The if statement doesn’t seem to be working at all. If I remove it, I get a 150px blank space if the post doesn’t have a picture attached.
{photo} returns the path to the image, I am able to display it anywhere outside the if statement.
Any idea why the if statement doesn’t work as it’s supposed to?