Stephen S
Forum Replies Created
-
Forum: Plugins
In reply to: [Frontend Uploader] Help? "Author" not being saved?I am having the same issue. The post is assigned to the admin (even in the back end) NOT to the logged in user who submitted the post. Any ideas? Thanks!
Forum: Plugins
In reply to: [Testimonial Rotator] Upgrading to 2.0 broke all my custom styles!you can go to the plugin page, then go to the Developer tab, then you will see a link to download 1.4, the old version
The difference, I believe, is that you are trying to link to the archive page in its entirety (correct?) whereas I am trying (and now succeeding, after checking that pref) to share individual posts on my archive page.
Forum: Plugins
In reply to: [WP Geo] WP GEO breaks WP 3.9 image editingWill do, thanks!
The above code will only work if the option including archives is set in the settings page of the plugin. Then i added separate code to hide the default so it only shows the in the location I want.
Forum: Plugins
In reply to: [AJAX Hits Counter + Popular Posts Widget] Custom Post types?Well, I needed to take this a step further to be able to add custom post types and pull them out separately, not just as a group. So here is what I did (hope this helps someone else):
1. Around line 1477, add your extra types. just copy the line from post type 2:
'<option value="2"'.( $post_type==2 ? ' selected="selected"' : '' ).'>'.__( 'Pages only', $this->plugin_alias ).'</option>'.and add one line for each type you need.
2. around line 889, add a new case type for each new post type, and make the number correspond as with the others.
3. VERY IMPORTANT: around line 1277 (or 1278) change this line:
'post_type' => intval( preg_replace( '#[^012]#', '', $new_instance['post_type'] ) ),to something like
'post_type' => intval( preg_replace( '#[^01234567]#', '', $new_instance['post_type'] ) ),add a number for each of your post types.
Et Voila! Now in the widget you can pick from any of your defined post types…
Forum: Plugins
In reply to: [AJAX Hits Counter + Popular Posts Widget] Custom Post types?ignore above, I was totally wrong. It is line 886, change:
p.post_type = \'post\'';to
p.post_type in ( \'post\',\'my_custom_post_type\')';And then just select posts for display (not pages and posts)
Forum: Plugins
In reply to: [AJAX Hits Counter + Popular Posts Widget] Custom Post types?I think I have just found the answer: no, not out of the box. But if one goes to line 353 of ajax-hits-counter.php, and changes this:
if( isset($_POST['post_type']) && in_array( $_POST['post_type'], array( 'post', 'page' ) ) )to something like this:
if( isset($_POST['post_type']) && in_array( $_POST['post_type'], array( 'post', 'page','my_custom_post_type' ) ) )And then sets the widget to get “Pages and Posts”, it will work.
Forum: Plugins
In reply to: [WP Geo] WP 3.8 /WP Geo 3.3.3 not respecting controls prefI just redownloaded the dev version you linked to above and installed it, and thankfully it works properly. Don’t know what the diffs are between it and the release version.
Forum: Plugins
In reply to: [WP Geo] WP 3.8 /WP Geo 3.3.3 not respecting controls prefugh! Somehow when I updated to the latest version, it broke my front page widget, which used to show all points on the map from all posts on the main page. But since updating, they are all gone, and the map is centered on london.
The individual single post pages are working.
Forum: Plugins
In reply to: [WP Geo] WP 3.8 /WP Geo 3.3.3 not respecting controls prefThat fixed it, thanks!
Forum: Requests and Feedback
In reply to: fix widgets already!Although I am not a good enough coder to help with coding, I would be happy to help with testing and feedback, how do I get involved?
Forum: Plugins
In reply to: [WP Geo] WP 3.8 /WP Geo 3.3.3 not respecting controls prefYou can check out the site here: http://satoristephen.com
For single post pages, I am using a simple text widget (with a plugin that allows shortcodes) and the shortcode [wp_geo_map]
For the homepage, however, I am using the following code in my template:
<?php $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $custom_query = array( 'posts_per_page' => 10, 'paged' => $paged ); $newquery = array_merge( $wp_query->query, $custom_query ); wpgeo_map( $newquery ); ?>Both the above are unchanged since 3.3.2 (and WP 3.7), which worked just fine.
Thanks!
Forum: Plugins
In reply to: [WP Geo] WP 3.8 /WP Geo 3.3.3 not respecting controls prefHi Ben, Thanks for getting back to me. That was the setting I had, but to be clear it does not matter which of the settings I choose (smaller/larger controls) from the dropdown, I am always getting the exact same large panning control and plus/minus zoom control.
Thanks!
Forum: Plugins
In reply to: [WP Geo] WP 3.8 /WP Geo 3.3.3 not respecting controls prefWell, that didn’t work. The pan and zoom controls are still sitting on top of my map, despite the prefs being set not to in settings. Is there another place that controls this in either the shortcode options or template options?
In the previous version, these controls did not show up btw, and all the settings are identical. (and I have tried changing the controls settings to other sizes with zero effect, it is always the same large panning disk and plus/minus signs)
Any other suggestions?