changed carousel and added wordpress function