So, in short, you lost motivation because your work didn't get enough attention.
Sounds like a skill issue to me.
You either write what is popular or write what you like. In rare cases like mine, where one enjoys writing what is popular, it is a different story. Do not expect huge success if...