Amended to use posts rather than galleries. Gallery theme and search created