Not all Walmart stores honor price matching. If yours does, make sure you let the cashier know you are price matching before starting the transaction. Also, the competitor store, which in this case is CVS, needs to be located within a 50-mile radius of your Walmart. Price matching decisions are up to the store manager.
Check with your local store for additional details on the price match policy.