Ben Huson
Forum Replies Created
-
How does this related to the Password Protected plugin?
Can you further information?Thanks
I think this should be resolved in more recent versions of the plugin.
This plugin only blocks the viewing of pages, not access to the content upload folder.
Forum: Plugins
In reply to: [Taxonomy Images] Taxonomy Images and PHP versionIt should be compatible with 5.6+
I no longer test back as far as 5.3
Forum: Plugins
In reply to: [WP Subtitle] Subtitle not displaying despite editing the template fileThe main content for each post in your code above is included via the
<?php get_template_part( 'content', get_post_format() ); ?>code.You will need to edit the
content.phpand insert the subtitle code into that file below where the title is output.Forum: Plugins
In reply to: [WP Subtitle] Wp Subtile not showing in WP 5.0 EditorHi,
This should now be fixed in version 3.2
It will show a subtitle panel in the sidebar on the right (same place as excerpts)Ben
Hi
Each sites cookie name is create is the form “{site_id}_password_protected_auth”.
The site ID is in the form “bid_{blog_id}”.There is a filter
password_protected_blog_idto change the blog ID which is used to create the cookie name.Using this filter to change the value to something unique for each site ‘may’ work.
For example, this would append a hashed version of the site home page URL:
function my_password_protected_blog_id( $blog_id ) {
$blog_id .= ‘_’ . md5( home_url( ‘/’ ) );
return $blog_id;
}
add_filter( ‘password_protected_blog_id’, ‘my_password_protected_blog_id’ );Give it a go and if it doesn’t;t work please let me know.
Thanks
Ben
I think it would require PHP 5.3+
What version of PHP are you running?
Forum: Plugins
In reply to: [WP Subtitle] Show on Home Page & StyleHi,
You can make them H3 tags by using the following template tags in your theme files:
<?php the_subtitle( '<h3>', '</h3>' ); ?>To show on home/archive pages you would need to include the above code in the relevant template files. This will depend on your theme but as a guide theme files are generally named as per this guide:
https://developer.ww.wp.xz.cn/themes/basics/template-hierarchy/#the-template-hierarchy-in-detailDoes that help?
Forum: Plugins
In reply to: [WP Subtitle] I May Be DenseHi,
I don’t have a Genesis theme to hand, but you may be able to add something like the following to your theme’s functions.php file:
function my_genesis_post_title_output( $output ) { if ( function_exists( 'get_the_subtitle' ) ) { $output .= get_the_subtitle( get_the_ID(), '<p class="subtitle">', '</p>, false ); } return $output; } add_filter( 'genesis_post_title_output', 'my_genesis_post_title_output' );Forum: Plugins
In reply to: [WP Subtitle] Adding Subtitle to Category PagesNot within the current version of the plugin…
..but I have been working for some functionality to add this which should be available within a future version once I’ve finished testing 🙂
Forum: Plugins
In reply to: [Expire Users] Is it possible for a hacker to bypass this plugin?Hopefully resolved in version 1.0.3 ?
Forum: Plugins
In reply to: [Expire Users] Is it possible for a hacker to bypass this plugin?Hi Rado,
The plugin does checks on login, but if a user has checked the “remember me” option or their auth cookie has been kept (i.e. not previously logged out properly) then it seems to bypass the checks.
I have added some code so if a user is logged in, whilst browsing their expiry details will be checked on each page load so they should be logged out immediately if they expire.
I will release an update but you can test this version if you like.
Many thanks
Ben
Forum: Plugins
In reply to: [WP Subtitle] Sub-title HTML5 semantics?Hi Hans,
As I understand it, H1–H6 elements should not be used for subheadings and taglines etc unless it intended to be the heading for a new section or subsection.
Valid options instead would be:
<h1>Title <span>Subtitle</span></h1>or:
<header> <h1>Title</h1> <p>Subtitle</p> </header>You could add a ‘subtitle’ class to the
<span>or<p>tags for styling if required.Forum: Plugins
In reply to: [WP Subtitle] No place to write subtitles on posts created with GutenbergVersion 3.1 now shows the subtitle field in the Gutenberg sidebar (like excerpt for posts).
As many people display the subtitle on archive pages, separately to the content, I will likely hold off on creating a subtitle block for now. For the moment I will try to follow how the excerpt is handled in Gutenberg and will likely review this as Gutenberg progresses in terms of templates and handling of the main page title.