plannerguy
Forum Replies Created
-
Forum: Plugins
In reply to: [HubSpot for WordPress] Google Maps API server rejected your requestwebbwow’s fix should be implemented.
I have SSL on my site and because the google maps api is enqueued as http: I keep getting “Display unsecure content” messages for all of my users.
Perhaps this should be
wp_enqueue_script( 'googleapis', '//maps.googleapis.com/maps/api/js?sensor=false');
which will then apply http or https depending on if the site has SSL or not.Just want to confirm issues with this plug-in and plug-in Post Type Switcher.
With both enabled, I couldn’t pick a forum in the dropdown – it would be reset after saving the post. Also this plug-in would create duplicate posts and not forum topics, same as Meathands above.
FYI.
Hi
I wrapped the shortcodes in a <div> and that seemed to do the trick.
Thanks for the prompt reply.
mOk, googled and found a solution. Amir, I might suggest adding it to your FAQ or other documentation.
To fix the authors page to show custom posts add the following code to your functions.php file. Note the array is used to display multiple post types. If you need to display only one type, remove the array.
function custom_post_author_archive( &$query ) { if ( $query->is_author ) $query->set( 'post_type', array( 'post', 'your-custom-type-here' ) ); remove_action( 'pre_get_posts', 'custom_post_author_archive' ); // run once! } add_action( 'pre_get_posts', 'custom_post_author_archive' );
Hope that helps anyone else stuck on this.
Amir,
There must be a few lines of code I can add to functions.php to get this to work. The custom post types work everywhere else on my site, except on the author pages. Any help would be really appreciated. Can you at least point me in the right direction?
Thanks,
MichaelHi,
Categories and Tags are not options in the Screen Settings for the new post type I created.Here’s a screenshot of my Article setup screen. https://bit.ly/z5uTuj.
Is there something incorrect in the setup?
M@amirhelzer, @jozik
Ok, took a while to get back to you.I removed the “wpcf” prefix, added the echo to the php statement and now it works.
Thanks for the help.
Updating your documentation with help avoid more posts like this.??