DrLightman
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Cannot redeclare wp_get_server_protocolHello, did you finally find the source of the issue?
Yeah, it seems you can’t use percentages on amp-iframe attributes width and height. It sucks.
Forum: Plugins
In reply to: [Glue for Yoast SEO & AMP] AMP 404 errorI somehow fixed the problem by hitting Save on the Settings>Permalink dashboard page, without doing any new modification, only an hit of Save.
Forum: Plugins
In reply to: [Glue for Yoast SEO & AMP] AMP 404 errorI’m having this issues on a blog with 0.4.2 AMP plugin also. I have no idea what is going on, used to work like a charm. Now the <link rel=”amphtml” link goes to a 404 page.
- This reply was modified 9 years, 3 months ago by DrLightman.
Forum: Plugins
In reply to: [Facebook Comments] Facebook comments plugin and Google AMPThe tag ‘comments-count’ is disallowed.
The tag ‘fb:comments-count’ is disallowed.that’s pretty much it. you cant have fb comments on an amp page. amp forbids javascript also, so fb js sdk can’t work obvisoulsy and so the comments widget cannot render for the same reason.
Forum: Plugins
In reply to: [AMP] How to fix this warning about ‘amp-ad extension .js script’?I did this in another way.
Somewhere in functions.php of your template put this:
function amp_post_template_data_filter_my($data, $post) { // extra components if (!isset($data['amp_component_scripts']['amp-ad'])) { $data['amp_component_scripts']['amp-ad'] = 'https://cdn.ampproject.org/v0/amp-ad-0.1.js'; } return $data; } add_filter('amp_post_template_data', 'amp_post_template_data_filter_my', 10, 2);I’ve came up to this by inspecting the source code of the AMP plugin version 0.4.2.
I don’t know if this the official way but it fixes the validation warning and it seems cool.
- This reply was modified 9 years, 5 months ago by DrLightman.
- This reply was modified 9 years, 5 months ago by DrLightman.
- This reply was modified 9 years, 5 months ago by DrLightman.
Thanks, it helped
Moreover I found the PHP function responsibile for the check, also: wp_cache_check_mobile() defined in the file \wp-super-cache\wp-cache-phase1.php
- This reply was modified 9 years, 7 months ago by DrLightman.
wp_cache_* functions have notihing to do with the plugin “wp super cache”, they are native wordpress functions to deal with object cache, they are defined in the file \wp-includes\cache.php .
if your installation is giving you a fatal error about them it seems something went wrong with the upgrade process. check if you have that above cache.php file.
- This reply was modified 9 years, 7 months ago by DrLightman.
Forum: Plugins
In reply to: [WP Super Cache] It overrides Mobile Theme*dump* please look into this
Forum: Plugins
In reply to: [Edit Flow] Author can't see own draftsThere was a get_terms filter that was filtering too much, and since edit-flow stores status as terms, they were filtered away.
Forum: Plugins
In reply to: [Edit Flow] Author can't see own draftsOkay attention, I think I found the plugin I was using that is causing incompatibility and therefore the issue:
https://wordpress.org/plugins/user-cats-manager/
Now I must find a way to intercept what is doing and comment it away. Disabling this plugin, the issue goes away and I can see all the statuses.
Forum: Plugins
In reply to: [Edit Flow] Author can't see own draftsIf as an author I edit an old my published post and try to change status, only Published is available:
Forum: Plugins
In reply to: [Edit Flow] Author can't see own draftsAt this point, disabling/enabling the plugin shows/hides the drafts for the authors in the posts list screen.
This is the draft setting:
http://x65.imgup.net/drafte3fb.jpgThis is the metabox in the post screen as seen by an author while it writes a post:
http://t57.imgup.net/metabox4482.jpgHe can only Publish or Save(as draft) but if he chooses this, he cannot edit his post anymore.
Forum: Plugins
In reply to: [Edit Flow] Author can't see own drafts1. activate the plugin
2. me log in as an “author”
3. me add post. insert a title. click “Save Draft” on top right metabox
4. me going to posts list, I can’t find the just saved draft. Instead, an Editor or Admin can see it as a Draft in the posts list.Forum: Plugins
In reply to: [Edit Flow] Author can't see own draftsHello,
you mean here?
http://k37.imgup.net/statuses66dd.jpg
If there, I think they put it in italian.