Leon Rowland
Forum Replies Created
-
Forum: Plugins
In reply to: [Pronamic Google Maps] No MapThanks jasonday.
I’ll look into this today and get back to you.
Forum: Plugins
In reply to: [Pronamic Google Maps] Plugin deletes geodataDeleting and Deactivating are 2 different things. You have the option under a Plugin to be deactivated. This will make the area around the plugin appear grey and none of the plugin will load.
Uninstallation/Deletion removes ALL data. Imagine if the otherwise, data always stayed even after removal? Your site would get very slow after a time if every plugin left all its data after you asked it to leave.
Forum: Plugins
In reply to: [Pronamic Google Maps] No MapCould you perhaps provide a screen of your admin edit page?
Forum: Plugins
In reply to: [Pronamic Google Maps] No MapYou have ticked the box in the Google Maps metabox on the Edit Post/Page/Post Type screen, to set to Show Map?
Forum: Plugins
In reply to: [[DEPRECATED] Pronamic Cookies] Remember closed barHello All.
We have identified the problem. An update will be out soon via WordPress but if you can’t wait, you can install this version:
https://github.com/pronamic/wp-pronamic-cookies/archive/0.3.1.zip
You can also fix the issue without a new version. Go to Settings > Pronamic Cookies > Advanced and fill in
Path: /
Expires: 1 yearForum: Plugins
In reply to: [Pronamic Google Maps] Not displaying?Hello Spoonuniversity.
Did you tick the Show Google Maps button inside the Pronamic Google Maps metabox?
Forum: Plugins
In reply to: [Pronamic Google Maps] Get different map per post?Hello elisa.ghi
You are the same person as dmonaco83?
Your question seems different from what dmonaco83 was asking. For you, you don’t want to use the mashup, instead just pronamic_google_maps() will show you the map of the current post you are seeing.
Forum: Plugins
In reply to: [[DEPRECATED] Pronamic Cookies] Dont allow cookie.Unfortunately not. There can be too many ways in which other developers of plugins/themes can add cookies that there is no sure way to block them. These methods in the plugin are purely as a notice.
Almost. The reference to $_POST must be the field ‘post_type’
<?php function save_theatre_meta( $post_id ) { if ( 'theatre' !== filter_input( INPUT_POST, 'post_type', FILTER_SANITIZE_STRING ) ) return; update_post_meta( $post_id, '_pronamic_google_maps_active', true ); } add_action( 'save_post', 'save_theatre_meta' );
Give that a try
Forum: Plugins
In reply to: [Pronamic Google Maps] Works Great, Color Snag?Oh, a bug. You are right. Thanks for following up with me.
This should only be happening when trying to access the settings from the Plugin menu. A fix will be soon with some other fixes in the line. For now if you access the settings from the Menu.
Forum: Plugins
In reply to: [Pronamic Google Maps] Works Great, Color Snag?Hey. My apologies thyon. We must have posted within seconds, as I didn’t see the URL when I wrote my comment.
I think the best option is to set the map to hidden with CSS, then on $(document).ready() display the map. I’m not quite sure of an alternative.
Forum: Plugins
In reply to: [Pronamic Google Maps] Works Great, Color Snag?Hello thyon.
Would you happen to have an example we could see?
Forum: Plugins
In reply to: [Pronamic Google Maps] Get different map per post?Hello dmonaco83
Unfortunately there is no support to request a Map based off Post ID. What it does instead is take the global $post object that is set when using the WordPress Loop.
I would recommend instead to use WP_Query and call the_post() on the custom WP_Query. This would then let the map show correctly.
Some reading to help you:
Hello carlae.
The pronamic_google_maps() method also checks if that tickbox has been selected.
It is a good idea to be able to specify its default state per post type, we will look to adding this.
For now, if you want a solution, you can always add a hook into the save_post action ( https://codex.www.ads-software.com/Plugin_API/Action_Reference/save_post ) that checks for post_type, and then
update_post_meta( $post_id, '_pronamic_google_maps_active', 'true' );
This would tell Pronamic Google Maps that it is active every time you update ( or on the first Publish ).
That would also mean you can’t turn it off and if thats ok, then the solution above works.
If you do want to be able to turn it off selectively for some, you could always write some javascript that is inserted into the admin edit screen.
$('#pgm-active-field').attr('checked', 'checked');
should do it.
Hope that gives you some good information to get started, until we develop our own interface. It could be a while, so if important, don’t wait for the update.