Forum Replies Created
-
AuthorPosts
-
msmithMemberThanks again Steve. That looks like it solved my second issue.
msmithMemberThanks Jason and Steve. That solved my issue. I do have one more question regarding a drop down field. The only one I have in my plugin displays fine, but whenever I change the value from the first option and save, it updates the database, but it still shows that same option in the back end. I don’t understand if this is expected or if I have an error in my code. I posted a copy of the field code below.
piklist('field', array( 'type' => 'select' ,'scope' => 'membership_level' ,'field' => 'membership_level' ,'label' => 'Membership Level' ,'attributes' => array( 'class' => 'text' ) ,'choices' => array( '1' => 'Associate ($' . $a . ')' ,'2' => 'Hobby ($' . $h . ')' ,'3' => 'Commercial ($' . $c . ')' ) ));
msmithMemberThanks for your help. I thought I went back and checked that, but apparently not.
msmithMemberI just sent the email.
Michael
msmithMemberI just went through and everything has t he correct structure.
msmithMemberI have made them match (now they are all members) but it’s still not showing. Is there something else I might need to correct?
msmithMemberadd_filter('piklist_post_types', 'members_post_types'); function members_post_types($post_types) { $post_types['members'] = array( 'labels' => piklist('post_type_labels', 'Members') ,'title' => __('Add a new Member') //,'menu_icon' => piklist_admin::responsive_admin() == true ? plugins_url('piklist/parts/img/piklist-icon.svg') : plugins_url('piklist/parts/img/piklist-icon.png') //,'page_icon' => plugins_url('piklist/parts/img/piklist-page-icon-32.png') ,'supports' => array( 'title', 'revisions', ) ,'public' => true ,'has_archive' => true ,'rewrite' => array( 'slug' => 'member' ) // ,'capability_type' => 'post' ,'edit_columns' => array( 'title' => __('Member') //,'author' => __('Assigned to') ,'post_states' => __('Status') ) ,'hide_meta_box' => array( 'slug' ,'author' ) ,'post_states' => true ,'status' => array( 'draft' => array( 'label' => 'Inactive' ,'public' => true ) ,'active' => array( 'label' => 'Active' ,'public' => true ) ) ); return $post_types; }Thanks for your help
Michael
msmithMemberI just enabled wp_debug, but not seeing any messages when I go to the add screen.
msmithMemberSure. I have it below.
<?php /* Title: Application Data Description: Data from membership application. Post Type: member */ piklist('field', array( 'type' => 'group' ,'label' => 'Address' //,'description' => 'An Un-grouped field. Data is saved as individual meta and is searchable.' ,'fields' => array( array( 'type' => 'text' ,'field' => 'ungrouped_address_1' ,'label' => 'Street Address' ,'columns' => 12 ) ,array( 'type' => 'text' ,'field' => 'ungrouped_address_2' ,'label' => 'PO Box, Suite, etc.' ,'columns' => 12 ) ,array( 'type' => 'text' ,'field' => 'ungrouped_city' ,'label' => 'City' ,'columns' => 5 ) ,array( 'type' => 'select' ,'field' => 'ungrouped_state' ,'label' => 'State' ,'columns' => 4 ,'choices' => array( 'AL' => 'Alabama' ,'AK' => 'Alaska' ,'AZ' => 'Arizona' ,'AR' => 'Arkansas' ,'CA' => 'California' ,'CO' => 'Colorado' ,'CT' => 'Connecticut' ,'DE' => 'Delaware' ,'DC' => 'District Of Columbia' ,'FL' => 'Florida' ,'GA' => 'Georgia' ,'HI' => 'Hawaii' ,'ID' => 'Idaho' ,'IL' => 'Illinois' ,'IN' => 'Indiana' ,'IA' => 'Iowa' ,'KS' => 'Kansas' ,'KY' => 'Kentucky' ,'LA' => 'Louisiana' ,'ME' => 'Maine' ,'MD' => 'Maryland' ,'MA' => 'Massachusetts' ,'MI' => 'Michigan' ,'MN' => 'Minnesota' ,'MS' => 'Mississippi' ,'MO' => 'Missouri' ,'MT' => 'Montana' ,'NE' => 'Nebraska' ,'NV' => 'Nevada' ,'NH' => 'New Hampshire' ,'NJ' => 'New Jersey' ,'NM' => 'New Mexico' ,'NY' => 'New York' ,'NC' => 'North Carolina' ,'ND' => 'North Dakota' ,'OH' => 'Ohio' ,'OK' => 'Oklahoma' ,'OR' => 'Oregon' ,'PA' => 'Pennsylvania' ,'RI' => 'Rhode Island' ,'SC' => 'South Carolina' ,'SD' => 'South Dakota' ,'TN' => 'Tennessee' ,'TX' => 'Texas' ,'UT' => 'Utah' ,'VT' => 'Vermont' ,'VA' => 'Virginia' ,'WA' => 'Washington' ,'WV' => 'West Virginia' ,'WI' => 'Wisconsin' ,'WY' => 'Wyoming' ) ) ,array( 'type' => 'text' ,'field' => 'ungrouped_postal_code' ,'label' => 'Postal Code' ,'columns' => 3 ) ) )); piklist('field', array( 'type' => 'text' ,'field' => 'member_phone_number' ,'label' => 'Phone Number' )); piklist('field', array( 'type' => 'text' ,'field' => 'member_email' ,'label' => 'member_phone' ) ); /* piklist('shared/code-locater', array( 'location' => __FILE__ ,'type' => 'Meta Box' ));*/ ?>Thanks for your help
Michael -
AuthorPosts