This question appears to be off-topic because it is about ...
Tutoring with a software named Wordpress, here a Tutorial for Extending it with a specific Plugin and an individual Theme.
Tutoring a Software Product named Magento.
a very individual problem without given any further reference to commons in programming in a useful manner. See also: Stack Overflow question checklist
a Debugging request of larger chunks of non-isolated code that may (or may not) contain the code the question asks about. Instead the code should be reduced the a bare minimum example code that outlines the problem and question in a compact and self-explaining manner.