Mohammad Jangda
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] My website redirects to the original postPosts are working for me: http://www.alteqnia.com/google-safer-internet-day-2016/amp/
Note: Pages don’t work yet and will redirect.
Forum: Reviews
In reply to: [AMP] Plugin works but there seems to be some validation and filter issuesThanks for the review! Fixes for these will go out in the next version of the plugin (v0.3). Until then, feel free to grab the development version here: https://github.com/Automattic/amp-wp
Forum: Plugins
In reply to: [AMP] Getting errors on google wmtWe’ve pushed out a fix in https://github.com/Automattic/amp-wp/pull/166 and will be included in the next release.
Forum: Plugins
In reply to: [AMP] Google Webmaster Tools reporting AMP errorsThe spec (https://developers.google.com/structured-data/rich-snippets/articles#article_markup_properties) suggests using an image that’s 696px wide so maybe try a bigger image.
Forum: Plugins
In reply to: [AMP] Feedback!Sure, you could make WooCommerce compatible with the plugin, although, they’d be mostly static.
See here for adding CPT support: https://github.com/Automattic/amp-wp/blob/master/readme.md#custom-post-type-support
Forum: Plugins
In reply to: [AMP] Google Webmaster Tools reporting AMP errorsYou can add a Site Icon to fix the logo validation issues.
Forum: Plugins
In reply to: [AMP] Downgrade back to Amp 0.1What specifically is not working about images?
You may be better off getting the most up-to-date development version here: https://github.com/Automattic/amp-wp/archive/master.zip
If you really want 0.1, you can use SVN or download the files from here: https://plugins.trac.wordpress.org/browser/amp/trunk?rev=1261474
Forum: Plugins
In reply to: [AMP] amp_frontend_add_canonicalDid you have a question or were you just sharing this snippet?
Forum: Plugins
In reply to: [AMP] Feedback!We only add the amphtml
<link>for posts that support it. If they’re showing up elsewhere, that’s a bug.Forum: Plugins
In reply to: [AMP] Google Webmaster Tools reporting AMP errors> Apparently, as a blog, my site should instead use the http://schema.org/BlogPosting type. How do I enable this?
We already use
BlogPosting(https://github.com/Automattic/amp-wp/blob/master/includes/class-amp-post-template.php#L111) so the error might be something else.Can you share URLs for the erroring pages?
Forum: Plugins
In reply to: [AMP] Does AMP for WordPress support custom post types?You can probably add the AMP rules manually as well:
add_rewrite_rule('(news|article|review)/([0-9]+)/amp/?', 'index.php?post_type=$matches[1]&p=$matches[2]&=1', 'top');Forum: Plugins
In reply to: [AMP] Structured Data Test failsYou can upload a site icon: https://make.wordpress.org/core/2015/07/27/site-icon/
Or manually specify one via code using the filter here: https://github.com/Automattic/amp-wp/blob/master/readme.md#template-data (You’ll want to set the
site_icon_urlkey)Forum: Plugins
In reply to: [AMP] Does AMP for WordPress support custom post types?What dos your permalink structure look like? Do you have any plugins that modify or change it or rewrites in any way?
Forum: Plugins
In reply to: [AMP] Images Broken and Layout ProblemsFor now, you can add explicit width/height attributes to the images.
Or wait for the next version of the plugin 🙂
Forum: Plugins
In reply to: [AMP] Does AMP for WordPress support custom post types?Something like this should work:
add_action( 'init', 'xyz_amp_add_cpt', 9 ); // before amp_init function xyz_amp_add_cpt() { if ( ! defined( 'AMP_QUERY_VAR' ) ) { return; // amp probably not installed... } add_post_type_support( 'reviews', AMP_QUERY_VAR ); }