your on the right track you have to stand to effectively climb rough sections
learning how to pump terrain is a huge key for riding stuff like that being that when i restarted MTBing after a long hiatus it was on a full suspension that bike did the work for me. When I built my first SS hardtail I had to learn to be alot more active with my legs. Also I know I sound like broken record but wide grippy soft tubeless tire have no downside for riding stuff like that.
so for climbing rough terrain
1. stand up
2. learn to be active instead of just being reactive
3. get a Full suspension bike
4. get a full suspension bike
5. get the biggest tires you can run and run them tubeless
6. if you ignored getting a full suspension bike, next hardtail you get make sure its not Aluminum. steel, carbon, and Ti all grip the ground better and our more comfortable.
There is no doubt that my Anthem X29er is a better rough climber than my SS redline. I think that on most climbs FS bikes are actually faster uphill but feeler slower because of the magic carpet like ride. With that said i still have to get off the saddle and be active on really rough climbs but its usually for much shorter periods of time.