Ben Huson
Forum Replies Created
-
Forum: Plugins
In reply to: [List Pages Shortcode] How to format output of [subpages] more nicelyHi,
The list HTML is completely vanilla so any styling you are seeing is added by your theme.
If you need to customise the styling, the HTML list tag outputted by the shortcode has a class “list-pages-shortcode” applied so you would need to customise your theme styles to style this differently.
Hi, I’ve been doing some development for allowing IP addresses here.
Please feel free to download, test and let me know if it works for you
Ben
It should work if your version of WordPress is set to use that language.
More information here…Please let me know if this works or you are having problems.
Forum: Reviews
In reply to: [List Pages Shortcode] Will give you a barebones list of titles🙂
Forum: Reviews
In reply to: [List Pages Shortcode] Will give you a barebones list of titlesIt does allow excerpt
[list-pages excerpt="1"]but not thumbnail at the moment.@john The next version will contain a ‘password_protected_login_redirect_url’ filter which will allow you to remove the ‘redirect_to’ parameter of the URL, like this:
<?php function my_password_protected_login_redirect_url( $url ) { return ''; } add_filter( 'password_protected_login_redirect_url', 'my_password_protected_login_redirect_url' ); ?>Sorry, you’re right, it doesn’t load the theme stylesheet.
You could add something like the following to your theme’s functions.php file to output extra styling into the HTML header (where my-image.jpg is in your them,e folder):<?php function my_password_protected_login_head() { ?> <style> .login-password-protected { background-image: url( <?php echo get_stylesheet_directory_uri(); ?>/my-image.jpg ); } </style> <?php } add_action( 'password_protected_login_head', 'my_password_protected_login_head' ); ?>First thing I would check is wether there is any sort of server-side caching enabled – the plugin does tend to work with caching very well.
There is no configuration to do this, but the login page will have a class on the body tag ‘login-password-protected’ so you can add styles to your theme to style it.
.login-password-protected { background-image: url( my-image.jpg ); }Forum: Plugins
In reply to: [WP Mail From II] Add translationForum: Plugins
In reply to: [List Pages Shortcode] List only a specific number of latest pagesIf not tested this, but the short code should accept the same parameters as the wp_list_pages() function.
The wp_list_pages() documentation says generally it’s arguments are inherited from get_pages() function.
If this is the case you may be able to pass a
numberparameter to specify the number of pages to show and theauthorsparameter to specify usernames.[list-pages number="5" authors="my_username"]Maybe try that and see if it works.
Forum: Plugins
In reply to: [Expire Users] A randomly generated password can be bypassed easily!The best approach would be to create a new User Role which has no capabilities.
You can do this easily with the Members plugin.Then set it so when a user expires they are assigned to this role.
Hi,
You can set a different expire time using the password_protected_auth_cookie_expiration filter.
// Expire after 2 hours function my_password_protected_auth_cookie_expiration( $duration ) { return 7200 // Time in seconds } add_filter( 'password_protected_auth_cookie_expiration', 'my_password_protected_auth_cookie_expiration' );Which Password text do you want to change?
The word “Password”?
You would need to use the WordPress gettext filter.You can add content above the login fields using the password_protected_before_login_form action;
That is currently not possible with this plugin.
Forum: Plugins
In reply to: [WP Geo] Search by location or postcodeThis functionality is not built-in to WP Geo by default.