{"id":5455927,"date":"2014-11-06T12:17:32","date_gmt":"2014-11-06T12:17:32","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/basic-understanding\/"},"modified":"2016-08-22T04:10:50","modified_gmt":"2016-08-22T04:10:50","slug":"basic-understanding","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/basic-understanding\/","title":{"rendered":"Basic understanding"},"content":{"rendered":"<p>Hello,<\/p>\n<p>is there a little more information about how to use Twig together with WordPress? I know Twig, so that&#8217;s not the problem.<br \/>\nBut I don&#8217;t know how I can access all the WordPress stuff like articles, pages etc. (plus: {{ dump() }} doesn&#8217;t work because dump can&#8217;t be found for some reason..)<br \/>\nHow is routing meant to work? (e.g. if URL == &#8216;\/about&#8217; then render about.twig etc.) Currently only index.twig gets rendered &#8211; always.<br \/>\nAnd how do I reference CSS, JS files etc. in my templates? Currently they also redirect to index.twig which results in &#8220;not found&#8221; &#8211; kind of.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/twig\/<\/p>\n","protected":false},"template":"","class_list":["post-5455927","topic","type-topic","status-closed","hentry","topic-tag-basics","topic-tag-routing"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5455927","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5455927\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5455927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}