kokoruz
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: $wpdb->insert – Truncated Value$table = $wpdb->prefix.stores; $data = array ('retailer' => $row[1], 'store_number' => $id, 'store_name' => $row[3], 'address' => $row[4], 'city' => $row[5], 'state' => $row[6], 'zip' => $row[7], 'm_vendor_id' => $row[8], 'lw_branch_name' => $row[9], 'lw_branch_page_link' => $row[10], 'lw_branch_street' => $row[11], 'lw_branch_city' => $row[12], 'lw_branch_state' => $row[13], 'lw_branch_zip' => $row[14], 'inside_sales_phone' => $row[15], 'inside_sales_contact' => $row[16], 'email' => $row[17], 'outside_sales_contact' => '', 'outside_sales_phone' => '', 'pcid' => $row[18]); $format = array ('%s','%d','%s','%s','%s','%s','%s','%d','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%d'); $wpdb->insert($table,$data,$format);
Forum: Plugins
In reply to: [YITH Infinite Scrolling] Duplicate post on custom WP_querynot working for me. anyone else?
I’ll work through this today and post my results
Forum: Plugins
In reply to: [Members - Membership & User Role Editor Plugin] Capability NamesThank You
As I did change one of the roles to Author and still had an issue could you please review my CPT and flag anything you see as an issue. Thank You.
Yes, it is set to public and I will research further into Custom Roles and post what I discover. Please do the same.
function cpt_team_posts() { $labels = array( 'name' => _x( 'Team Posts', 'Post Type General Name', 'site_intranet' ), 'singular_name' => _x( 'Team Post', 'Post Type Singular Name', 'site_intranet' ), 'menu_name' => __( 'Team Posts', 'site_intranet' ), 'name_admin_bar' => __( 'Team Post', 'site_intranet' ), 'archives' => __( 'Item Archives', 'site_intranet' ), 'attributes' => __( 'Item Attributes', 'site_intranet' ), 'parent_item_colon' => __( 'Parent Team Post:', 'site_intranet' ), 'all_items' => __( 'All Team Posts', 'site_intranet' ), 'add_new_item' => __( 'Add New Team Post', 'site_intranet' ), 'add_new' => __( 'Add New', 'site_intranet' ), 'new_item' => __( 'New Team Post', 'site_intranet' ), 'edit_item' => __( 'Edit Team Post', 'site_intranet' ), 'update_item' => __( 'Update Team Post', 'site_intranet' ), 'view_item' => __( 'View Team Post', 'site_intranet' ), 'view_items' => __( 'View Team Posts', 'site_intranet' ), 'search_items' => __( 'Search Team Post', 'site_intranet' ), 'not_found' => __( 'Not found', 'site_intranet' ), 'not_found_in_trash' => __( 'Not found in Trash', 'site_intranet' ), 'featured_image' => __( 'Featured Image', 'site_intranet' ), 'set_featured_image' => __( 'Set featured image', 'site_intranet' ), 'remove_featured_image' => __( 'Remove featured image', 'site_intranet' ), 'use_featured_image' => __( 'Use as featured image', 'site_intranet' ), 'insert_into_item' => __( 'Insert into team post', 'site_intranet' ), 'uploaded_to_this_item' => __( 'Uploaded to this team post', 'site_intranet' ), 'items_list' => __( 'Team post list', 'site_intranet' ), 'items_list_navigation' => __( 'Team post list navigation', 'site_intranet' ), 'filter_items_list' => __( 'Filter Team posts list', 'site_intranet' ), ); $args = array( 'label' => __( 'Team Post', 'site_intranet' ), 'description' => __( 'Intranet Team Posts', 'site_intranet' ), 'labels' => $labels, 'show_in_rest' => true, 'supports' => array( 'title', 'editor', 'comments'), 'taxonomies' => array( 'team-post-sections' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'query_var' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'rewrite' => array ( 'with_front' => false, 'slug' => 'team-posts' ), 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => array('team-post','team-posts'), 'map_meta_cap' => true, ); register_post_type( 'team-posts', $args ); }
I just published a test post in my CPT as an Author/Role and I did not get a notification using that role.
I have just completed my testing. In the custom role, now with the notifications box checked to grant access to your plugin, using the User Switching plugin I have changed to a User in that custom role. I published a post and NO email notification was sent. I switched back to my admin user role, published a new post and YES, a email notification was sent.
I was really hoping that the issue was just setting the capability for that role to allow for notifications but after testing it seams the issue may be greater.
I look forward to your response and feedback.
Thank You.
FYI – I have reviewed the default roles and notification from BNFW are not ticked for Author, Contributor, or Editor.
Based on Roles it would seem Editor and Author this might need to be turned on by default as they both have publishing capabilities by default.
I too was thinking this must be a role/capability issue.
The CPT is all scripted. Not created by a plugin. The role was created through a plugin.
Under the CPT is have ‘capability_type’ => array(‘team-post’,’team-posts’)
And under the role I have given access to edit_team-posts, delete_team-posts, publish_team-posts, delete_published_team-posts, edit_published_team-posts.
As I dig through this plugin I have located a tab called Notifications. It includes bnfw(your plugin) the capability for this custom role is not ticked. I suspect this is my issue. I will tick and confirm but if you have any additional feedback please let me know.
It seems to be working now. Not sure if there was a cache issue with other plugins or changes I was attempting or the fact that I changed the email from “name”@”domain.com” where real email is managed through Outlook to wordpress@”domain.net” where this internal site lives.
Could the issue have been the .com vs the .net? I did try some SMPT plugins to use the .com email. The first was WP Mail SMTP which was configured to the Outlook server. The mail was being delivered but with a warning related to the .com/.net source. I disabled this as I did not want to alarm people with this warning.
The second was Post SMTP recommended by the Plugin. This plugin gave an error delivering the mail. It generated 5 emails log information.
Any insight to what I have said would be welcome reading. Thank you for your plugin!
Forum: Plugins
In reply to: [WTI Like Post] Custom Post TypeThank you for your response/help.
Forum: Fixing WordPress
In reply to: Media Library – All Files/Root Folder DisplayIt was that plugin. Thank you. I will follow up on that support forum now that I know where the menu is originating from.
Responsive Lightbox & Gallery plugin.
Thank You
Forum: Plugins
In reply to: [Conditional Fields for Contact Form 7] Email Output without visible fields?I am experiencing the same issue/question.
I am capturing medical practitioner titles. When I output the email I want it to say ‘Kurt Kokoruz, MD’ or replace the title designation with what the user types. Unfortunaltey what I am getting is ‘Kurt Kokoruz, OTHER – Please Specify LMNOP’ assuming I type ‘LMNOP’ in the conditional field. How do I get the mail to output to only show ‘Kurt Kokoruz, MD’ or ‘Kurt Kokoruz, LMNOP’ If the user selects ‘Other’ I don’t want that to print.
[select* Designation_GEK first_as_label "Designation" "DO" "MD" "NP" "PA" "OTHER - Please Specify"] [group designation-other][text* Designation_Other_GEK placeholder "Specify Designation"][/group] <p>[Full_Name_GEK], [Designation_GEK][Designation_Other_GEK] <br/>
Forum: Plugins
In reply to: [UniqueID for Contact Form 7] Why skip some numbers?I have experienced this as well. The three submissions I have received were 1098, 1106, 1118.
I expected it to be chronological. It is going up as expected but not incrementally.
I’d love to know if there is someway for this to be incremental.