correct search conditions for displaying all entries with tags