title: Timber (Twig) how to call wordpress functions
body: <p>In Timber is this function</p>
  
  <pre><code>{{post}}
  </code></pre>
  
  <p>where you get things like</p>
  
  <pre><code>{{post.post_title}}
  </code></pre>
  
  <p>but there are other functions in WordPress like</p>
  
  <pre><code>get_the_permalink();
  </code></pre>
  
  <p>which are not accessible from post.get_the_permalink or post.get_permalink</p>
  
  <p>these are the variables i can access</p>
  
  <ul>
  <li>ID</li>
  <li>post_author</li>
  <li>post_date</li>
  <li>post_date_gmt</li>
  <li>post_content</li>
  <li>post_title</li>
  <li>post_excerpt</li>
  <li>post_status</li>
  <li>comment_status</li>
  <li>ping_status</li>
  <li>post_password</li>
  <li>post_name</li>
  <li>to_ping</li>
  <li>pinged</li>
  <li>post_modified</li>
  <li>post_modified_gmt</li>
  <li>post_content_filtered</li>
  <li>post_parent</li>
  <li>guid</li>
  <li>menu_order</li>
  <li>post_type</li>
  <li>post_mime_type</li>
  <li>comment_count</li>
  <li>filter</li>
  </ul>
  
  <p>As this Timber documentation describes there are actions <a href="https://timber.github.io/docs/guides/wp-integration/#the-content" rel="nofollow noreferrer">[Timber Doc]</a> but you would have to define each function in the functions.php file ... which means i would have to create each already existing function from php and "redirect" it to the wordpress function. Then bind it to Twig.</p>
  
  <p>Also there was a way as you can see <a href="https://stackoverflow.com/questions/31767735/how-do-i-write-the-wordpress-function-is-front-page-in-twig-timber-code">here</a> which is now <a href="https://github.com/timber/timber/wiki/WP-Integration" rel="nofollow noreferrer">deprecated</a></p>