While rubbing catnip on the post is a common “trick,” I think it is a bit hit or miss. But rubbing anything with your scent on it—i.e., a worn shirt or used towel—has worked much more often for me since it helps to accomplish the desired result for your cat, which is a mingling of scents.

