There is no direct train from guruvayur to ernakulam you need to interchange for once. From Guruvayur you need to catch the train Passenger 56043 towards Thrisur that would drop you at Punkunnam. From there you need to take up Passenger 56363 towards Ernakulam Jn. You would be able to reach your destination.