This is how I am currently overcoming the issue – it serves my purpose on posts, pages, the blog posts page (I also test for page number and add it in for page 2,3, … ) and tag archives (I don’t bother with $paged as my tags only apply to pages and not posts).
It is not a nice solution and as mentioned above – really this should be done by the core plugin.
/**
* Getting Genesis SEO into AMP pages
*/
add_action( ‘amp_post_template_head’, ‘amp_post_template_metatitle’,2);
function amp_post_template_metatitle() {
// tag pages
global $wp;
$current_url = home_url(add_query_arg(array(),$wp->request));
if(is_tag()){
remove_filter( ‘get_the_archive_title’, ‘ampforwp_editable_archvies_title’,10 );
remove_action( ‘amp_post_template_head’, ‘amp_post_template_add_title’ );
echo ‘<title>’;
echo genesis_default_title();
echo ‘</title>’;
}
// blog page
elseif(is_home()){
remove_action(‘amp_post_template_head’,’ampforwp_frontpage_title_markup’);
echo ‘<title>’;
echo genesis_default_title();
echo ‘</title>’;
}
// posts and pages
else{
remove_action( ‘amp_post_template_head’, ‘amp_post_template_add_title’ );
remove_action(‘amp_post_template_head’,’ampforwp_meta_description’);
remove_action(‘amp_post_template_head’,’ampforwp_frontpage_title_markup’);
echo ‘<title>’;
echo genesis_default_title();
echo ‘</title>’;
}
if($current_url==’https://www.example.com/amp’){
remove_action(‘amp_post_template_head’,’ampforwp_frontpage_title_markup’);
echo ‘<title>’;
echo ‘Dentist – Lakewood, White Rock & Lake Highlands’;
echo ‘</title>’;
$description = ‘Your local dental practice, serving patients from across East Dallas. For an appointment with Kelli Slate, DDS – Please call (214) 821-8639.’;
echo ‘<meta name=”description” content=”‘ . esc_attr( $description ) . ‘” />’ . “\n”;
}
$description = genesis_get_seo_meta_description();
$description = genesis_get_seo_meta_description();
// Add the description if one exists.
if ( $description && $paged > 1 ) {
echo ‘<meta name=”description” content=”‘ . esc_attr( $description ) . ‘- page ‘ . $paged . ‘” />’ . “\n”;
}
elseif( $description) {
echo ‘<meta name=”description” content=”‘ . esc_attr( $description ) . ‘” />’ . “\n”;
}
}