Robert Jolly
Forum Replies Created
-
Forum: Plugins
In reply to: [Publish To Apple News] Malformed JSON ContentHi @potatomaster,
I tested this out on our local dev install, and I think I’ve found the source of the issue. We’re calling the following code to insert a Google Ad into the content after the second paragraph. When I remove that content filter, the error is resolved. I know you worked around other issues like this before, so I’m curious if this is something you want to account for in the plugin, or if it’s better that I add a conditional to not run this code when the_content is called by the plugin code.
// Display Google Ads after 2nd paragraph on post pages add_filter( 'the_content', 'hugga_ads_inside_content' ); function hugga_ads_inside_content( $content ) { //We don't want to modify the_content in de admin area if( !is_admin() ) { $ads = '<!-- BH Responsive Ads with Mag Backup use no more than 3 times--><div class="bh-r-ads"><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-9243217993604494" data-ad-slot="9642627916" data-ad-format="auto"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});</script></div><!-- bh-r-ads -->'; $p_array = explode('</p>', $content ); $p_count = 2; if( !empty( $p_array ) ){ array_splice( $p_array, $p_count, 0, $ads ); $output = ''; foreach( $p_array as $key=>$value ){ $output .= $value; } } } return $output; }I already have a conditional to not run it in the admin screens, so if there’s a way to not run it when this plugin calls the content filter, it should be easy enough to add. Is there a way to determine when the plugin is calling this?
Thanks,
RobertHi Steven,
Thanks for this. I am running 1.0.1 already with the WI&E plugin, so I think it’s related to another issue.
I wonder if this has something to do with arrays of info on widget visibility already existing when Jetpack is activated, thus causing the errors. I can run Jetpack, but only with Widget Visibility disabled.
My next steps are to:
- delete all the widgets,
- activate widget visibility with no widgets in place
- if no errors, rebuild all the widgets manually
- test, and report back
I wish I knew more about where the widget visibility settings are being stored to do deeper, more specific troubleshooting on this.
Thanks again. I realize I’m probably an edge case on this stuff (importing widget data before activating Jetpack from a Jetpack-enabled blog).
-R
Hi Jeremy,
OK… I used this plugin to do my widget exporting/importing: http://wordpress.org/plugins/widget-importer-exporter/.
I can offer the widget export file for you to review, but we’ll need to chat away from the public support channel for this.
Thanks for the response!
-RobertForum: Plugins
In reply to: [Event List] RSS implementaionHi! I just updated and checked out the feed settings. I like all the options!
One thing… I noticed that the feed URL is something that looks like it’s hard-coded from one of your dev environments (possibly?). It inserts as:
< link rel=”alternate” type=”application/rss+xml” title=” » Eventlist Feed” href=”http://zeus/wp-plugins/?feed=eventlist” / >
I haven’t taken a look at the plugin code yet, but I’m assuming that’s what’s happening. Just thought you’d like to know. I’ll post again if I find something more specific to point to or code to suggest.
Forum: Plugins
In reply to: [Event List] RSS implementaionHello!
I’m wondering if this ever got into the plugin. I’m running Version 0.4.5 (latest) and don’t see anything when I look for an RSS feed of the events.
If you’re swamped and can’t get to this, can I help develop this feature for/with you?
-Robert