Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: Shortcode in Piklist #2625
    msmith
    Member

    Thanks again Steve. That looks like it solved my second issue.

    in reply to: Shortcode in Piklist #2623
    msmith
    Member

    Thanks 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 . ')'
    )
    ));
    in reply to: Meta Box Not Showing #1876
    msmith
    Member

    Thanks for your help. I thought I went back and checked that, but apparently not.

    in reply to: Meta Box Not Showing #1874
    msmith
    Member

    I just sent the email.

    Michael

    in reply to: Meta Box Not Showing #1872
    msmith
    Member

    I just went through and everything has t he correct structure.

    in reply to: Meta Box Not Showing #1870
    msmith
    Member

    I have made them match (now they are all members) but it’s still not showing. Is there something else I might need to correct?

    in reply to: Meta Box Not Showing #1868
    msmith
    Member
    add_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

    in reply to: Meta Box Not Showing #1865
    msmith
    Member

    I just enabled wp_debug, but not seeing any messages when I go to the add screen.

    in reply to: Meta Box Not Showing #1860
    msmith
    Member

    Sure. 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

Viewing 9 posts - 1 through 9 (of 9 total)