Title: Basic understanding
Last modified: August 22, 2016

---

# Basic understanding

 *  [Andreas](https://wordpress.org/support/users/alinnert/)
 * (@alinnert)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/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.
 * [https://wordpress.org/plugins/twig/](https://wordpress.org/plugins/twig/)

The topic ‘Basic understanding’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/twig.svg)
 * [Twig](https://wordpress.org/plugins/twig/)
 * [Support Threads](https://wordpress.org/support/plugin/twig/)
 * [Active Topics](https://wordpress.org/support/plugin/twig/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/twig/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/twig/reviews/)

## Tags

 * [basics](https://wordpress.org/support/topic-tag/basics/)
 * [routing](https://wordpress.org/support/topic-tag/routing/)

 * 0 replies
 * 1 participant
 * Last reply from: [Andreas](https://wordpress.org/support/users/alinnert/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/basic-understanding/)
 * Status: not resolved