Ben Huson
Forum Replies Created
-
Forum: Plugins
In reply to: [List Pages Shortcode] New VersionI will bump the version…
Also, just noticed it also created duplicate Segments.
Forum: Plugins
In reply to: [List Pages Shortcode] New VersionThe short owe should still work but it would be nice to convert it to a block at some point…
Forum: Plugins
In reply to: [WP Subtitle] get_the_subtitle() not working but the_subtitle() isAre you trying to get the subtitle as a variable to use, or output it immediately?
This should work:
$subtitle = get_the_subtitle( $post->ID,””,””,false );Or to output:
get_the_subtitle( $post->ID,””,””,true);Forum: Plugins
In reply to: [WP Subtitle] Since the last WordPress Update your Plugin doesn´t workHi Jens
I have been unable to recreate this issue.
Also, I can’t see the
<div class="entry-header">HTML anywhere in the source code of the page at the link you provided.Has your theme changed?
Ben
Forum: Plugins
In reply to: [WP Subtitle] Since the last WordPress Update your Plugin doesn´t workI cannot see the subtitle. Where is it supposed to display? Below the “Planung der Route Peru Bolivien Chile” title?
Forum: Plugins
In reply to: [WP Subtitle] Since the last WordPress Update your Plugin doesn´t workDo you mean the subtitle field is not in the admin, or is it just not showing on the front end?
Forum: Plugins
In reply to: [WP Subtitle] trim subtitle function with ellipses (…)Use
the_subtitle( ‘’, ‘’, false )The false parameter returns the subtitle instead of outputting it.
You can do this without hacking the plugin using the
password_protected_login_headhook.function my_password_protected_login_head() {
// Output your link to a CSS file in your theme folder (or wherever)
echo ‘<link rel=”stylesheet” href=”‘ . get_stylesheet_directory_uri() . ‘/pp-login.css”>’;}
add_action( ‘password_protected_login_head’, ‘my_password_protected_login_head’ );It current just checks for
manage_optionscapability to allow admin users.Currently you would have build you own functionality to check the user using the
password_protected_show_loginfilter.Use that filter to return false if the user should NOT be required to login.
This is not possible by default.
If you can code your own functionality there is a
password_protected_process_loginfilter you can use to provide your own password checks:function my_password_protected_process_login( $success, $password ) { // DO you own checks against $password here and return <code>true</code> to log the user in. return $success; } add_filter( 'password_protected_process_login', 'my_password_protected_process_login', 10, 2 );Ah, can’t believe I missed that option!!!
Thanks
This should be fixed in version 2.2.4
Your site should not be configured to be accessed at both the www and non-ww version of your domain.
It is likely this causing issues with the cookies that store the login status.
It’s best to make sure the primary URL/domain is the one set in your WordPress General settings and setup redirects in your htaccess to 301 redirect one version of your domain to the other.
For example, this would redirect the non-ww version of your domain to the full www version:
RewriteCond %{HTTP_HOST} ^example.com$ [NC] RewriteRule (.*) http://www.example.com/$1 [R=301,L]Try enabling “Allow Administrators” (and possibly “Allow REST API Access”) in the Password Protected settings.
Does that work?