{"action":"created","issue":{"url":"https://api.github.com/repos/jarednova/timber/issues/573","labels_url":"https://api.github.com/repos/jarednova/timber/issues/573/labels{/name}","comments_url":"https://api.github.com/repos/jarednova/timber/issues/573/comments","events_url":"https://api.github.com/repos/jarednova/timber/issues/573/events","html_url":"https://github.com/jarednova/timber/issues/573","id":88488120,"number":573,"title":"get_option doesn't work in .twig file","user":{"login":"andricicezar","id":930510,"avatar_url":"https://avatars.githubusercontent.com/u/930510?v=3","gravatar_id":"","url":"https://api.github.com/users/andricicezar","html_url":"https://github.com/andricicezar","followers_url":"https://api.github.com/users/andricicezar/followers","following_url":"https://api.github.com/users/andricicezar/following{/other_user}","gists_url":"https://api.github.com/users/andricicezar/gists{/gist_id}","starred_url":"https://api.github.com/users/andricicezar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andricicezar/subscriptions","organizations_url":"https://api.github.com/users/andricicezar/orgs","repos_url":"https://api.github.com/users/andricicezar/repos","events_url":"https://api.github.com/users/andricicezar/events{/privacy}","received_events_url":"https://api.github.com/users/andricicezar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jarednova/timber/labels/needs-info","name":"needs-info","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-15T17:19:36Z","updated_at":"2015-06-16T14:21:03Z","closed_at":"2015-06-16T14:21:03Z","body":"Hello,\r\n\r\nI register the option with (this works):\r\n```php\r\n  $wp_customize->add_setting( 'post_a_demand_text' , array(\r\n    'default'     => 'Post a demand',\r\n    'transport'   => 'refresh',\r\n  ) );\r\n\r\n  $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'post_a_demand_text', array(\r\n    'label'        => __( 'Post a demand (text)', 'frec' ),\r\n    'section'        => 'frec_texts',\r\n    'settings'   => 'post_a_demand_text',\r\n  ) ) );\r\n```\r\n\r\nI get the option with this after I set a value from Customize page:\r\n```php\r\n$context = Timber::get_context();\r\nprint_r(get_option(\"post_a_demand_text\")); // this returns nothing\r\nTimber::render('views/index.twig', $context);\r\n```\r\n\r\nI don't get any errors. Can you tell me why?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/jarednova/timber/issues/comments/112448325","html_url":"https://github.com/jarednova/timber/issues/573#issuecomment-112448325","issue_url":"https://api.github.com/repos/jarednova/timber/issues/573","id":112448325,"user":{"login":"andricicezar","id":930510,"avatar_url":"https://avatars.githubusercontent.com/u/930510?v=3","gravatar_id":"","url":"https://api.github.com/users/andricicezar","html_url":"https://github.com/andricicezar","followers_url":"https://api.github.com/users/andricicezar/followers","following_url":"https://api.github.com/users/andricicezar/following{/other_user}","gists_url":"https://api.github.com/users/andricicezar/gists{/gist_id}","starred_url":"https://api.github.com/users/andricicezar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andricicezar/subscriptions","organizations_url":"https://api.github.com/users/andricicezar/orgs","repos_url":"https://api.github.com/users/andricicezar/repos","events_url":"https://api.github.com/users/andricicezar/events{/privacy}","received_events_url":"https://api.github.com/users/andricicezar/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T14:21:03Z","updated_at":"2015-06-16T14:21:03Z","body":"My bad. I should have used get_theme_mod."}}