Ben Huson
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Subtitle] Space left and right around subtitle disappears in mobile viewHi, I think it is just to do with where you have inserted the subtitle tag in your theme. At the moment it appears after the
<header class="entry-header">in your theme. For the indenting to work it looks like the subtitle function should be inside the header and wrapper in a<p>(or other HTML heading tag:<header class="entry-header"> <h1 class="entry-title">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</h1> <?php if ( function_exists( 'the_subtitle' ) ) the_subtitle( '<p>', '</p>' ); ?> </header>Forum: Plugins
In reply to: [List Pages Shortcode] Can I use multiple parametersHi Brent,
No, not currently possible, although I like the idea 🙂
Ben
Forum: Plugins
In reply to: [WP Subtitle] Character IssuesI’ll compare the 2 versions to see what’s changed and see if I can narrow it down…
Forum: Plugins
In reply to: [WP Subtitle] Tip: Make WPSubtitle work with post typesIt’s possible to add support for post types without hacking the plugin.
You can add support to your theme as follows – add this to your theme’s functions.php file.
<?php function mytheme_add_wps_subtitle_event_support() { add_post_type_support( 'my_post_type', 'wps_subtitle' ); } add_action( 'init', 'mytheme_add_wps_subtitle_event_support' ); ?>So, if you want to add support for multiple post types, you can get all post types using
get_post_types()as mentioned above, and loop through them usingadd_post_type_support()to add support for each.- This reply was modified 9 years, 8 months ago by Ben Huson.
Forum: Plugins
In reply to: [WP Subtitle] Character IssuesHi,
I’m not able to replicate this issue at the moment on my test installs.
Have you had this working OK with a previous version of the plugin?
When you save the post, does it show the weird characters in the admin, or on the front end of the site, or both?
Thanks
Ben
Forum: Plugins
In reply to: [WP Subtitle] Error in editing post screen@mkay Thank you for spotting the issue – that is the correct fix.
Just a couple of other minor issues found in the new version to fix, then I will release an update.
In the meantime you can fix as you have above, then when an update is available, upgrade as normal.
Forum: Plugins
In reply to: [WP Geo] Combine proximity search with a post category filterHi Joe,
WP Geo doesn’t do that out of the box.
A quick look at FactWP’s proximity search makes it look like it should be possible with a bit of customisation if you can write some code, although I’ve not tried this.
https://facetwp.com/documentation/proximity/FacetWP expects:
The Data Source should be a custom field containing a comma-separated latitude, longitude.
WP Geo stores the longitude and latitude as separate custom fields
_wp_geo_latitudeand_wp_geo_longitudeso it won’t work as is.However, with a bit of custom code you could update a separate custom meta value with comma separate lat/lng whenever the WP Geo custom meta values are updated – see the
updated_{$meta_type}_metahook https://codex.ww.wp.xz.cn/Plugin_API/Action_Reference/updated_(meta_type)_meta(you would also need to write something to update any existing WP Geo post meta)
That may then work.
If you have the FacetWP plugin you could probably test this by adding a custom field to your posts (in the WordPress admin) with comma separate values and see if this works. If it does then look into writing the code to save the WP Gwo meta in the right format.
Forum: Plugins
In reply to: [WP Subtitle] HTML in subtitle?Version 2.8 now allows HTML like the main WordPress title.
Forum: Plugins
In reply to: [WP Subtitle] After installation of wp subtitle showing fatal errorIt looks like you may have 2 subtitle plugins installed which are incompatible with each other.
Please try deactivating one.
- This reply was modified 9 years, 9 months ago by Ben Huson.
Forum: Plugins
In reply to: [WP Subtitle] HTML in subtitle?Hi,
It current strips HTML from the subtitle when saving but I notice the main title allows HTML.
I have added this issue to address in a future version – it may not be the next update which is nearly ready for release, but perhaps the one after.Thank you
Ben
Forum: Plugins
In reply to: [Expire Users] emails not sent on expiration after update to 4.6Thank you for tracking down the issue.
Forum: Plugins
In reply to: [BackUpWordPress] Your server only has X GB of disk space left – problem?Hi Kat,
I just tried enabling support to review what information it would send but it failed to load the popup on my multisite install.
I think the reason was it is try to load AJAX from
http://example.com/wp-admin/network/admin-ajax.phpinstead of fromhttp://example.com/wp-admin/admin-ajax.php(without the “network” in the URL)Ben
Forum: Plugins
In reply to: [BackUpWordPress] Your server only has X GB of disk space left – problem?HI Kat,
If I deactivate and reactivate the plugin, the message persists and I am still not able to access the settings.
Ben
Forum: Plugins
In reply to: [BackUpWordPress] Your server only has X GB of disk space left – problem?Hi Kat,
Yes, this is still an issue I am experiencing.
Basically, I have this issue on a big WordPress site with lots of media and also (seperately) a some Multisite installations.
I have the multisite configured to just backup the database which is actually quite small – plenty of space on the server for that, it’s just the uploads directory which is massive.
However, when I try to do the database backup it says “Your server only has 9 GB of disk space left which probably isn’t enough to complete a backup.”
So even though I am only trying to do a database backup, it must be assuming I’m trying to backup everything if it thinks that 9GB is not enough space.
Once that message appears, it persists and I cannot get back to the main backups screen without rolling back the plugin to a previous version.
Ben
Yes, but at the moment you can only do this via code, not via the admin.
See the documentation for the
password_protected_before_login_formandpassword_protected_after_login_formhooks.https://github.com/benhuson/password-protected/wiki/Documentation