Basic understanding
-
Hello,
is there a little more information about how to use Twig together with WordPress? I know Twig, so that’s not the problem.
But I don’t know how I can access all the WordPress stuff like articles, pages etc. (plus: {{ dump() }} doesn’t work because dump can’t be found for some reason..)
How is routing meant to work? (e.g. if URL == ‘/about’ then render about.twig etc.) Currently only index.twig gets rendered – always.
And how do I reference CSS, JS files etc. in my templates? Currently they also redirect to index.twig which results in “not found” – kind of.
- The topic ‘Basic understanding’ is closed to new replies.