Problemns on ports

Hello i am new around here and using arduino, we normally use it for class practices and projects, we need to make a binary counter using leds , we manage to acomplish it by using digital ports from 0 to 7(which is kind of tricky because of the port 0 and 1 other funtions), But when we tried to use ports from 8 to 12 the output doesnt work when using together, but separately they work, any idea why?

Post your sketch, let's see what you have going on. Use the code tags button (looks like a paper scroll above).