TCBarrett
Forum Replies Created
-
Forum: Plugins
In reply to: [Redirection] Correct hook for after plugin has considered all redirectsI have seen the hooks, as you say there is nothing obvious. Would you be able to specify a point where all the Redirect redirection hooks are done by? Say template_redirect, 999 ?
Forum: Plugins
In reply to: [GEO my WP] Shortcode [gmw_single_location] zoom_level attribute not workingThanks Eyal 🙂
Forum: Plugins
In reply to: [GEO my WP] Using with Posts 2 postsHey Eyal
This plugin: https://wordpress.org/plugins/posts-to-posts/
So I have two custom post types, one with GMW geo data (CPT1) and one without (CPT2). When I land on CPT2 single page, I want to display all CPT1 (related vis posts 2 posts) in GMW results.
Basic usage, including WP_Query example can be found here: https://github.com/scribu/wp-posts-to-posts/wiki/Basic-usage
Forum: Plugins
In reply to: [GEO my WP] Shortcode [gmw_single_location] zoom_level attribute not workingYes, I do. There is a map and all that. It works. Just can’t change the zoom level.
Forum: Plugins
In reply to: [The Events Calendar] qp_query hook breaks posts 2 postsYou may have convinced yourself, but you have written a plugin that doesn’t play well with other plugins. Your followup feels like a PR exercise, which is not of any use to me.
Forum: Plugins
In reply to: [GEO my WP] Trigger map refreshThe GMap object has to be globally available to manipulate, so I updated jquery.ui.addresspicker.js
this.gmap = new google.maps.Map(this.mapElement[0], this.options.mapOptions); window.locationMap = this.gmap; this.gmarker = new google.maps.Marker({ position: this.options.mapOptions.center, map:this.gmap, draggable: this.options.draggableMarker}); google.maps.event.addListener(this.gmarker, 'dragend', $.proxy(this._markerMoved, this)); window.locationMarker = this.gmarker;Then on location success:
var mapCentre = new google.maps.LatLng( $('#_wppl_lat').val(), $('#_wppl_long').val() ); google.maps.event.trigger( window.locationMap, 'resize' ); window.locationMap.setCenter( mapCentre ); window.locationMarker.setPosition( mapCentre );HTH
Forum: Plugins
In reply to: [GEO my WP] Change default lat/long and zoom in adminIf you mean
plugins/posts/assets/js/jquery.ui.addresspicker.jsThen I found that.
I changed it to default to Big Ben, for us UK folk 🙂
initLat = 51.5008; initLng = 0.1247;Would be great if it was an option, or somehow configurable without editing plugin files.
Forum: Plugins
In reply to: [GEO my WP] Method needed to hide the Additional Information fieldsThis should work with 2.6.4.2:
div.additional-information-wrapper { display:none !important; }Forum: Plugins
In reply to: [The Events Calendar] qp_query hook breaks posts 2 postsYou aren’t even going to help suggest where in your code it might be useful to start?
Your plugin breaks other plugins and you basically don’t care.
Thanks for your help!
Forum: Fixing WordPress
In reply to: After updating to WP 3.9, I cannot access the dashboard.FYI: I had this issue on my self-hosted site. I needed to re-start the service stack anyway, and that fixed the problem. Definitely points to a caching issue, either with PHP or Apache/Nginx.
Forum: Plugins
In reply to: [Posts 2 Posts] Removing P2P Widget?Try removing the widget later in the stack:
add_action( 'widgets_init', 'tcb_unregister_p2p_widget', 99 ); function tcb_unregister_p2p_widget() { unregister_widget( 'P2P_Widget' ); }Forum: Plugins
In reply to: [User Groups] [patch] Multi-site deleteMultisite support would be great!
Forum: Plugins
In reply to: [WP Glossary] Problems with columnsThe markup produced when using the ‘cols‘ attribute is to create a
<ul>element with X<li>items in, where X equals the value put in ‘cols‘.Use CSS styling to make it look how you want.
Forum: Plugins
In reply to: [WP Glossary] Is this to automatically create links in content?Forum: Plugins
In reply to: [WP Glossary] Change path to glossary termNot possible out of the box. Have a look at how rewrite rules work, you may be able to find a way.