How do I hide one word from a view result column
Since I want to display an item from two different tables, I used an if-else statement.

if ($row-&gt;state == 'published') {
  echo "$date"; 
}
else {
  echo "$row-&gt;state";
}