{"action":"opened","issue":{"url":"https://api.github.com/repos/jarednova/timber/issues/808","labels_url":"https://api.github.com/repos/jarednova/timber/issues/808/labels{/name}","comments_url":"https://api.github.com/repos/jarednova/timber/issues/808/comments","events_url":"https://api.github.com/repos/jarednova/timber/issues/808/events","html_url":"https://github.com/jarednova/timber/issues/808","id":125166875,"number":808,"title":"Custom menu: extend TimberMenuItems or build one with get_posts?","user":{"login":"mikpouet","id":282248,"avatar_url":"https://avatars.githubusercontent.com/u/282248?v=3","gravatar_id":"","url":"https://api.github.com/users/mikpouet","html_url":"https://github.com/mikpouet","followers_url":"https://api.github.com/users/mikpouet/followers","following_url":"https://api.github.com/users/mikpouet/following{/other_user}","gists_url":"https://api.github.com/users/mikpouet/gists{/gist_id}","starred_url":"https://api.github.com/users/mikpouet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikpouet/subscriptions","organizations_url":"https://api.github.com/users/mikpouet/orgs","repos_url":"https://api.github.com/users/mikpouet/repos","events_url":"https://api.github.com/users/mikpouet/events{/privacy}","received_events_url":"https://api.github.com/users/mikpouet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-06T12:22:11Z","updated_at":"2016-01-06T12:22:11Z","closed_at":null,"body":"Hi, thanks for everyone involved in this really nice tool.\r\nI'm using Timber for the first time in a new project and I'm wondering what would be the best way to make my menu work well with polylang and another field in the associated post that I want to check.\r\n\r\nI made a menu with every pages inside wp, filter them with a function call inside the twig for loop on items to check the lang, but I have difficulties to access the post field associated with the menu item.\r\n\r\nI thought maybe I should extend the TimberMenuItems class but not sure it is the right way... and where to put the code... in functions.php of my theme?\r\nAlso I considered building the \"hierarchical menu\" myself by querying all the pages and using args instead of trying to filter the menu after...\r\n\r\nAny hint on good practice?\r\n\r\nCheers\r\nmik"}}