Dave
Forum Replies Created
-
Forum: Plugins
In reply to: [Better Section Navigation Widget] Question Re: DisplayAnybody?
Yeah, 2.1.3 gives me what I want.
What if I just rolled back to an earlier version?
That is quite a drastic change. Is there any way I can get the old interface to work on a new site? Some setting in the database maybe? Please say yes.
I’m trying to duplicate ALL of the settings from the old site to the new site and this makes it impossible without starting from scratch and learning a whole new interface.
Forum: Plugins
In reply to: [Multiple Roles] Use with custom roles?Well, the issue is solved for me:
Capital letters in the unique identifiers was the problem. Previously, I had this:
My Role as the display name, and
MyRole as the unique identifier.When I changed the unique identifier to:
myrole
then it worked!
my-role also works.
Saemideluxe,
Try this and see if it fixes your problem:
add_role("special-member", "Special Member");
Forum: Plugins
In reply to: [Multiple Roles] Use with custom roles?Turns out it’s a server issue. Everything works as expected on every server I’ve tried, except for this particular server for some reason. I can’t imagine what the problem could be, but there’s nothing I can do about it because I don’t manage the server and they have no incentive to investigate it for me.
Forum: Plugins
In reply to: [Custom Post Type UI] Action hook for post type creation?Thanks again, Michael. This is working perfectly for me.
So, whenever a new post type is registered, check a box on the theme options page:
// Check the box for a new post type on theme options page function check_post_type_box_initially($data) { // Get the post types that are already checked $checked = get_checked_post_types(); // Get the post types that have already been registered $already_registered = get_option('already_registered', []); // Don't do anything for those post types that are not new if ( in_array( $data['cpt_custom_post_type']['name'], $already_registered ) ) { return; } // This is a new post type: add it to the checked and already registered arrays $checked[] = $data['cpt_custom_post_type']['name']; $already_registered[] = $data['cpt_custom_post_type']['name']; // Update the database update_option('options_post_type_options_post_types', $checked); update_option('already_registered', $already_registered, 'yes'); } add_action( 'cptui_after_update_post_type', 'check_post_type_box_initially' );
- This reply was modified 2 years, 1 month ago by Dave.
Forum: Plugins
In reply to: [Custom Post Type UI] Action hook for post type creation?Thank you so much! That looks really promising. I will let you know how it turns out.
Forum: Plugins
In reply to: [Custom Post Type UI] Action hook for post type creation?So, not per post. I mean not when creating or saving a single post. Just when creating the actual post type on the Add New Post Type screen.
Forum: Plugins
In reply to: [Custom Post Type UI] Action hook for post type creation?Yes, only when the post type itself is created, not for any single post operation.
When the movie post type is created, do something, but only that one time.
Forum: Plugins
In reply to: [Multiple Roles] Use with custom roles?Hi. Thanks. No, I’m a Super Admin on the network, so that can’t be the issue.
Okay, I assume it’s a problem caused by a conflict with the Roles and Capabilities plugin, but I’m gonna have to do some further testing.
I see someone else raised that issue a while ago, but it was never resolved. I will see what I can find out and then maybe come up with a solution.
Thanks for your time.
Forum: Plugins
In reply to: [Disable Full Site Editing] Multisite SupportWorks great, thanks!
Forum: Plugins
In reply to: [Disable Full Site Editing] Multisite SupportThanks!
Never mind. I was able to fix it in the simplesamlphp authentication function. There is a ReturnTo parameter which was previously set to $site_url/login. I just had to change it to $site_url . $_SERVER[“REQUEST_URI”] and now all is well. Thanks!
Thanks!