kavg
Forum Replies Created
-
Forum: Plugins
In reply to: [Participants Database] Where should I add php code to create custom tags?I’ve added a plugin to make a custom tag and successfully installed and activated it. But when I used it in a string combine field it does not display anything. The field stays empty.
Here’s my code
<?php /** * Plugin Name: PDb With Custom tags * Description: adds custom template tags to be used in string combine fields */ add_filter( 'pdb-tag_template_data_before_replace', function ($tag_list) { $id = $tag_list['id']; if (strlen($id) == 1){ $formattedID = "000" . $id; } elseif (strlen($id) == 2) { $formattedID = "00" . $id; } elseif (strlen($id) == 3) { $formattedID = "0" . $id; } else { $formattedID = $id; } $tag_list['member_id'] = substr($tag_list['batch'], -2) . $tag_list['university'] . $formattedID; return $tag_list; } );
I believe my code works properly or is there anything wrong with it?
Forum: Plugins
In reply to: [Participants Database] Can I add multivalued field to a record?Thank you. I’ll try that.
Thank you very much for your support. I could solve my problem with the given test plugin.
Thanks for the reply. But I cannot find “Resend the new user welcome email” function on “with selected” menu in the List Participants page at wp-admin. “with selected” menu only has 5 functions; delete, approve, unapprove, export and mass edit.
It doesn’t make any chnage. The error still exists.
- This reply was modified 2 years, 11 months ago by kavg.
BuddyPress is already up to date. Furthermore, when I try to upload photos in a post, it also gives an error saying “Oops! error”. Can it be a problem with the server?
I changed the theme to twenty seventeen and disabled some plugins related to the previously installed theme and its working now. Thanks for the help.