teaperson2000
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] A value for the logo field is required.There may be a better way, but I have this in my functions and it fixed the issue:
add_filter( ‘amp_post_template_metadata’, ‘who2_amp_modify_json_metadata’, 10, 2 );function who2_amp_modify_json_metadata( $metadata, $post ) {
$metadata[‘@type’] = ‘NewsArticle’;$metadata[‘publisher’][‘logo’] = array(
‘@type’ => ‘ImageObject’,
‘url’ => ‘https://www.who2.com/wp-content/uploads/2016/03/who2googly.png’,
‘height’ => 60,
‘width’ => 600,
);
$metadata[‘description’] = strip_tags(apply_filters(‘the_excerpt’, get_post_field(‘post_excerpt’, $post->post_id)));
return $metadata;
}Experiencing this problem as well after upgrading to WP 4.6.1. Does anyone have a workaround?
FYI, this is either not fixed in the latest version or broken again. The hack now needs to be /includes/public/display-posts.php
Forum: Plugins
In reply to: [AMP] Can't change Schema.org (JSON) Metadata Publisher LogoI just used this exact same code, and it worked for me. Which I know is not very helpful at all, but it does suggest that maybe something else besides this snippet of code is what is causing problems.
Forum: Plugins
In reply to: [W3 Total Cache] Disable on AMP pages@cybmeta Thank you! The latter solution is the simple thing I was looking for. My pages are pretty small so HTML minification is not a serious issue.
Forum: Plugins
In reply to: [W3 Total Cache] Disable on AMP pages@cybmeta Thanks for that solution.
I’m wondering if there would be a way to deregister the stylesheet and script file after W3TC creates them, so that the plugin doesn’t have to get patched directly.
Forum: Plugins
In reply to: [AMP] Does AMP for WordPress support custom post types?Even if you are using apache, you could still use this rewrite rule in your functions.php file and have it work.
Otherwise, you’re going to have to make sure to cover your whole URL structure in the rewrite rule.
I tried that and it didn’t work. AFAIK this is because attachments have a status of ‘inherit’ in the database, not ‘publish’. In any event, after I did that, it’s working now.
On the settings page (https://yoursite/wp-admin/admin.php?page=tptn_options), uncheck all the checkboxes by “Display number of views on:”
Clunky but it works. It would be helpful if you could document all the parameters for the API somewhere.
Forum: Plugins
In reply to: [Recent Posts Widget Extended] [BUG?] shortcode thumb="false" not workingand same problem with excerpt=”false” being disregarded
Forum: Plugins
In reply to: [Combrite] Event Search does not workOops, typo. Should be https://bdcwire.com/calendar/
Forum: Plugins
In reply to: [Combrite] Event Search does not work@lew-egr: thanks. do you know if you need to buy the pro version of the calendar to support the Eventbrite integration?
BTW, friends of mine have been very happy with The Event Calendar, which they use on https://bcwire.com/calendar/
Forum: Plugins
In reply to: [Combrite] Event Search does not workHaving the same issue. I’m on WP 4.0.1
When I go to edit the plugin, it says that the files are inactive.