As it just so happens, you can put together a neat coffee mug shelf with just a block of wood, a couple shelf brackets, and a plunger from Dollar Tree. Yes, you read that right -- a plunger.
To fix this issue, you can turn a Dollar Tree plunger into a cute rustic shelf to display your coffee mugs instead. Just purchase metal wall brackets, a wood board, cup hooks, wood glue ...