{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/amp-wp/issues/458","repository_url":"https://api.github.com/repos/Automattic/amp-wp","labels_url":"https://api.github.com/repos/Automattic/amp-wp/issues/458/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/amp-wp/issues/458/comments","events_url":"https://api.github.com/repos/Automattic/amp-wp/issues/458/events","html_url":"https://github.com/Automattic/amp-wp/issues/458","id":173768382,"number":458,"title":"Shortcodes not working","user":{"login":"shivampaw","id":11842979,"avatar_url":"https://avatars.githubusercontent.com/u/11842979?v=3","gravatar_id":"","url":"https://api.github.com/users/shivampaw","html_url":"https://github.com/shivampaw","followers_url":"https://api.github.com/users/shivampaw/followers","following_url":"https://api.github.com/users/shivampaw/following{/other_user}","gists_url":"https://api.github.com/users/shivampaw/gists{/gist_id}","starred_url":"https://api.github.com/users/shivampaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shivampaw/subscriptions","organizations_url":"https://api.github.com/users/shivampaw/orgs","repos_url":"https://api.github.com/users/shivampaw/repos","events_url":"https://api.github.com/users/shivampaw/events{/privacy}","received_events_url":"https://api.github.com/users/shivampaw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-29T12:56:52Z","updated_at":"2016-08-29T21:49:06Z","closed_at":"2016-08-29T15:56:07Z","body":"Hi,\r\n\r\nI have a custom shortcode for a click to tweet link.\r\n\r\n```\r\nfunction click_to_tweet_shortcode( $atts, $content = \"\" ) {\r\n\t$url = 'https://twitter.com/intent/tweet?text='.$content.'&url='.get_permalink().'&via=depression_911';\r\n\treturn '<blockquote><p>'.$content.' - <a target=\"_blank\" href=\"'.$url.'\" title=\"'.$content.'\">Click to Tweet</a></p></blockquote>';\r\n}\r\nadd_shortcode( 'ctt', 'click_to_tweet_shortcode' );\r\n```\r\nIt works fine on the normal version: https://www.depressionforteens.com/you-should-talk-about-your-depression/ \r\n\r\nBut not on AMP: https://www.depressionforteens.com/you-should-talk-about-your-depression/amp/\r\n\r\nThe example is at the bottom of the post.\r\n\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/Automattic/amp-wp/issues/comments/243268040","html_url":"https://github.com/Automattic/amp-wp/issues/458#issuecomment-243268040","issue_url":"https://api.github.com/repos/Automattic/amp-wp/issues/458","id":243268040,"user":{"login":"shivampaw","id":11842979,"avatar_url":"https://avatars.githubusercontent.com/u/11842979?v=3","gravatar_id":"","url":"https://api.github.com/users/shivampaw","html_url":"https://github.com/shivampaw","followers_url":"https://api.github.com/users/shivampaw/followers","following_url":"https://api.github.com/users/shivampaw/following{/other_user}","gists_url":"https://api.github.com/users/shivampaw/gists{/gist_id}","starred_url":"https://api.github.com/users/shivampaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shivampaw/subscriptions","organizations_url":"https://api.github.com/users/shivampaw/orgs","repos_url":"https://api.github.com/users/shivampaw/repos","events_url":"https://api.github.com/users/shivampaw/events{/privacy}","received_events_url":"https://api.github.com/users/shivampaw/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T21:49:05Z","updated_at":"2016-08-29T21:49:05Z","body":"Yeah the problem is with the link. I'll wait for the merge and update then I guess."}}
{"actor":{"display_login":"shivampaw"}}