Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Radio field returns array instead of string #2090
    exacks44
    Member

    Thank you very much for the quick and perfect support!

    in reply to: Radio field returns array instead of string #2086
    exacks44
    Member

    Actually, I use $my_plugin_settings = get_option('my_plugin_settings');

    I explain again my problem, because I think there is a misunderstanding:

    My plugin was working without any trouble until the last version of Piklist. My problem is not how to load data, my problem is that the new version of Piklist is now returning an array instead of a string for radio fields.

    With version 0.9.3.6:
    var_dump( $my_plugin_settings['a_radio_field'] )
    returns
    string(4) "grid"

    With version 0.9.4 (and version 0.9.4.1):
    var_dump( $my_plugin_settings['a_radio_field'] )
    returns
    array(1) { [0]=> string(4) "grid" }

    in reply to: Radio field returns array instead of string #2083
    exacks44
    Member

    I do not use any function, do I have to?

    For example, I use:

    if ( $my_plugin_settings['display_type'] == 'grid' ) {
       ...do some stuff...
    }
    in reply to: Radio field returns array instead of string #2081
    exacks44
    Member

    Here my radio field code:

    <?php
    /*
    Title: My Plugin
    Setting: my_plugin_settings
    Tab Order: 10
    */
    
    piklist('field', array(
    	'type' => 'radio'
    	,'field' => 'display_type'
    	,'label' => 'List display'
    	,'value' => 'grid'
    	,'choices' => array(
    		'grid' => 'Grid'
    		,'list' => 'List'
    		,'quicksand' => 'jQuery Quicksand'
    	)
    ));

    And I use somewhere else in my plugin this variable to call the value:
    $my_plugin_settings['display_type']

    This variable was returning a string before the update, like 'grid', 'list' or 'quicksand'.
    Now I get an array, like array { [0]=> "list" }

    Thank you

    in reply to: Bug Report: Taxonomies + WP 3.5 #820
    exacks44
    Member

    Hi,

    Does a real fix exist for this issue now? I have the same problem, but I am not as lucky as txhorselady, because it doesn’t fix by itself :/

    Maybe you have found a clue!

    Thank you

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