Ben Huson
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Geo] [PATCH] Only get options when required on initJust happen to have everything handy when I saw your post.
Sorry I missed the PR, would have used that if I spotted it.Forum: Plugins
In reply to: [WP Geo] [PATCH] Only get options when required on initThanks. Changed (commit here) and will be in next release.
Forum: Plugins
In reply to: [WP Geo] short code map is not showing upDoes your “Show Maps On” WP Geo setting have “Pages” ticked.
If not, it won’t be loading any of the google map scripts on pages.
The above code ensures the Google Maps scripts on loaded on all pages, just in case there is a need for a map to be displayed on a page. It’ll be an easy way to check if that is your issue.
The process I would use for debugging a broken admin if you can;t see any errors would be as follows:
Make a backup of your database and files first just in case! You might find some plugin/theme settings revert when doing this.
1. FTP into the site so you can access the files.
2. Rename each plugin in the plugins folder prefixed with an underscore. This will have the same effect as deactivating all plugins.
3. Check if it’s now possible to access the admin. If not also try renaming your active theme folder and see if that works.
4. If still no luck check if you have an “mu-plugins” folder in wp-content and if so prefix that folder name with an underscore.
5. If still not working you could make a backup of your .htaccess file and try removing that.
Hopefully by this time you should be able to access the admin as no plugins should be active and any weird changes that make have been made to your htaccess file will be removed.
Once you can access the admin, try reactivation the theme, then each plugin one by one until you find the culprit.
Password Protected does not create any other files anywhere.
Have you added the debugging and error setting to your wp-config.php file via FTP to see if that displays a more useful error when you try to access the admin?
Do you have direct FTP access to the site?
Can you go in via FTP and rename/delete the plugin?If you deleted the plugin completely I’m not sure how it might still be causing issues.
If you are developing, have you turned on WP_DEBUG to see if that gives an errors?
Also error checking?
If these are active when you try to visit the admin it may give you some feedback as to the cause.
Forum: Plugins
In reply to: [Expire Users] Add expiration date to user creation admin templateNo just incredibly busy 🙂
If anyone else is able to code this in the meantime I’ll happily accept contributions via the plugin’s GitHub page.
Forum: Plugins
In reply to: [WP Geo] short code map is not showing upYou could try forcing the WP Geo scripts to load on all pages to see if that fixes your issue. Add something like this to your functions PHP file.
function my_wpgeo_show_maps( $show_maps ) { return true; } add_filter( 'wpgeo_show_maps', 'my_wpgeo_show_maps' );The
wpgeo_mapshortcode is the same as thewp_geo_mapshortcode – it has just been renamed to fit with the naming conventions of the other short codes. Thanks for spotting – that needs to be updating in the documentation.Forum: Plugins
In reply to: [List Pages Shortcode] Short code expansion in titleHow have you “enabled short code expansion”?
Please give further details so I can recreate your setup.
Please see the note on the main plugin page and read me:
Please note, this plugin does not currently work with WP Engine hosting due to their page caching implementation.
Forum: Plugins
In reply to: [WP Geo] 5 star reviews but 2.5 star rating?I think a lot of the 1 star reviews were from earlier in the plugin’s history before ww.wp.xz.cn forced you to write a review when rating a plugin.
Also, this map plugin is not always the right one for everyone’s needs and I know some people have given low rating because it “didn’t do what they wanted”. It allows attributing a single location to an individual post (or post type) and showing that on maps in a variety of ways via short code, widget or template tag – if you need to assign multiple locations another plugin may be a better alternative.
My best advice is give it a try and see if it is right for your needs.
I have updated the code so that it can be used like a plugin – download it here.
Just drop it in your plugins folder an activate it from the plugins screen in your admin.
An interesting use case…
Not possible with current version, but with a couple of tweaks and a bit of code you can achieve this. Was interested to see if it was possible so I had a play…
First you need to edit the List Pages Shortcode plugin and make these changes:
The following 2 lines of code (appear separately in the code)…
do_action( 'shortcode_list_pages_before' ); do_action( 'shortcode_list_pages_after' );…need to be changed to:
do_action( 'shortcode_list_pages_before', $atts, $content, $tag ); do_action( 'shortcode_list_pages_after', $atts, $content, $tag );I will ensure these changes are in the next release of the plugin.
To add support for pages starting with certain letters is more tricky, but i have posted the code here.
It will also you you use the shortcode like this:
[list-pages sort_order="ASC" sort_column="post_title" index="0123456789ABCDEF" title_li="A-F" /] [list-pages sort_order="ASC" sort_column="post_title" index="FGHIJKLM" title_li="F-M" /] [list-pages sort_order="ASC" sort_column="post_title" index="NOPQRST" title_li="N-T" /] [list-pages sort_order="ASC" sort_column="post_title" index="UVWXYZ" title_li="U-Z" /]Hope that helps 🙂
Forum: Plugins
In reply to: [WP Geo] WP Geo KML Layer Using Google Maps V3 APIWhich widget are you using?