I followed the instructions in your link, and I added the following code to my functions.php file:
// ===== AMP support for custom post type "filmlink" =====
add_action( 'amp_init', 'amp_add_filmlink' );
function amp_add_filmlink() {
add_post_type_support( 'filmlink', AMP_QUERY_VAR );
}
Works perfect!
Then I added the following for my second custom post type:
// ===== AMP support for custom post type "filmlink-kategorie" =====
add_action( 'amp_init', 'amp_add_filmlink-kategorie' );
function amp_add_filmlink-kategorie() {
add_post_type_support( 'filmlink-kategorie', AMP_QUERY_VAR );
}
This breaks the whole website and results in an error 500. Why?