Ketchup can be regarded as a highly viscous liquid, or a thixotropic (flows under pressure) solid. Neither term is exactly correct, but the problem is not what to call it. The problem is how to get the ketchup out of the bottle, in measured quantities, without making a mess.
Full technical explanation.