Jason Bahl
Forum Replies Created
-
Forum: Plugins
In reply to: [WPGatsby] Trying to get property of non-object notices@austinjherman what version of WPGatsby are you on?
I believe this was fixed with this Pull Request: https://github.com/gatsbyjs/wp-gatsby/pull/37 and released on October 19 as v0.5.3.
Forum: Plugins
In reply to: [WPGraphQL] Registering Custom Settings do not appear@nov4to Thanks for using WPGraphQL!
To use WordPress settings with GraphQL, you need to register them to
show_in_graphql
.You can see examples here: https://www.wpgraphql.com/docs/settings/.
One thing to note as well, is that when registering settings, if you only register them within
is_admin()
context, the settings will not be registered to show in graphql because GraphQL is not withinis_admin()
context.Forum: Plugins
In reply to: [WPGraphQL] Slack channel invitation not working (token_revoked)@justlevine hello. Where did you come across that link? I tried to fix all those links.
The new link can be found on the WPGraphQL Community page: https://www.wpgraphql.com/community/
Forum: Reviews
In reply to: [WPGraphQL] headless wp is idiotic – but still cool@shawfactor WPGraphQL can be used entirely with PHP from within WordPress plugins and themes. While it’s common for decoupled applications to turn to GraphQL, you don’t have to have a decoupled JavaScript environment to benefit from WPGraphQL.
You can use the
graphql()
function to get data you need in a PHP plugin or theme, without having to make a remote http request to an endpoint, and pass the data down to Template parts in PHP. Benefit from the declarative nature of the GraphQL Query Language, the benefits of GraphQL DataLoader techniques, validation, and more.Of course, it’s also helpful for users that want to build decoupled applications, whether that’s using JS frameworks, or building native iOS and Android applications that must communicate over APIs if they need to show data from WordPress.
Forum: Plugins
In reply to: [WPGatsby] Failing miserably in our installHello,
This plugin has been completely re-written to work with WPGraphQL (instead of the WP REST API) and the new Gatsby Source WordPress Experimental plugin.
You can read more about the new source plugin here: https://github.com/gatsbyjs/gatsby-source-wordpress-experimental
When I try and insert an image, i see an error in polldaddy.js
Uncaught TypeError: Cannot read property 'replace' of undefined
in polldaddy.jsForum: Plugins
In reply to: [CPT-onomies: Using Custom Post Types as Taxonomies] Possible plugin conflictIt looks like there are deeper issues than just the one I found. Because CPT-onomies doesn’t fully mimic the functionality of Taxonomies, some plugins such as Enhanced Media Library don’t work well with CPT-onomies.
For now, I think I’m going to have to go the same route as Ash-ic and set up functionality to mirror a cpt to a taxonomy so that I can do some custom organizing with Enhanced Media Library.
Forum: Plugins
In reply to: [CPT-onomies: Using Custom Post Types as Taxonomies] Possible plugin conflictI thought about going the same route as ash-ic and just mirroring a cpt and taxonomy on my own, but there’s a lot of cool stuff the cpt-onomies plugin does that I want to take advantage of, so I did a little troubleshooting and this fixed things for me.
In my theme I simply addded:
remove_action( ‘restrict_manage_posts’, array( $cpt_onomies_admin, ‘restrict_manage_posts’ ), 10 );
I’m getting this same issue
“Fatal error: Call to a member function get_column_info() on a non-object in /Users/jason/Sites/bokka/londonbay-2015/wp-content/plugins/cpt-onomies/admin.php on line 924”
Forum: Plugins
In reply to: [Post Type Archive Link] Online site problemI also have the same issue (on WP Engine) and by removing the third paramater on line 363 works for me as well.
Forum: Plugins
In reply to: [Advanced Custom Fields: Link Picker Field] Doesn't work with WidgetsHey,
I spent some time looking into this and I got it working.
In the /js/input.js file, any of the field selectors need to have body before them.
For instance, I changed
#' + doingLink + '-url'
to
body #' + doingLink + '-url'
I made this change for all selectors and now we’re good to go.
Forum: Plugins
In reply to: [Anything Order] Plugin negatively affects Custom MenusI’ve also experienced this. Took me a few hours to realize this plugin was the plugin causing the issues.
Forum: Plugins
In reply to: [JW Player for Flash & HTML5 Video] JS enqueued on all admin pagesThanks for your quick response and attention to the plugin. Let me know when you implement a fix.
Thanks,
Jason
Forum: Plugins
In reply to: [JW Player for Flash & HTML5 Video] JS enqueued on all admin pagesA little info on why I made that change:
The Revolution Slider has some javascript that gets the Image that’s being sent to the editor, extracts the URL, then it uses that image to generate a new slide.
I changed the function in the revolution slider from:
window.send_to_editor = function(html) { tb_remove(); var urlImage = jQuery(html).attr('src'); if(!urlImage || urlImage == undefined || urlImage == "") var urlImage = jQuery('img',html).attr('src'); onInsert(urlImage); }
to
window.send_to_editor = function(html) { alert(html); }
to see what was getting passed through.
The JWPlayer shortcode was getting passed through instead of the image. This led me to find the filter in the JWPlayer plugin that is filtering the media_send_to_editor function.
My solution now sends both the intended image AND the shortcode, so the url abstraction that the Revolution Slider is using still works.
I still think there’s a better solution that will leave that filter alone if the Insert to Post button is not clicked specifically for the JWPlayer plugin, as sending the image AND the shortcode likely isn’t a solid resolution to the issue and will likely cause conflicts with other plugins.
Perhaps an alternative to using that filter would be to use JS to send the data needed to the editor?
Forum: Plugins
In reply to: [JW Player for Flash & HTML5 Video] JS enqueued on all admin pagesI changed line 260 of jwp6-class-media.php from:
if ( isset($shortcode) ) return $shortcode->shortcode();
to
if ( isset($shortcode) ) $html = $html . $shortcode->shortcode();
This appears to work with the revolution slider now and as far as I can tell, this doesn’t screw up the JWPlayer plugin either. . .