- This topic has 1 reply, 2 voices, and was last updated 5 years, 11 months ago by
Steve.
Viewing 1 reply thread
-
AuthorPosts
-
-
March 7, 2016 at 7:57 pm #6036
Dante CervantesMemberhello i’m creating a widget with 3 fields, image, title and url, at this moment everything is working like a charm, but when i want to print widget array i got this error in array.
Piklist file
<?php piklist('field', array( 'type' => 'group' ,'label' => __('Publicidad') ,'add_more' => true ,'fields' => array( array( 'type' => 'file' ,'field' => 'image', 'label' => 'Imagen' ), array( 'type' => 'text' ,'field' => 'titulo', 'label' => 'Titulo' ), array( 'type' => 'text' ,'field' => 'url', 'label' => 'Enlace' ), ) ));Print_r of $settings
Array ( [image] => Array ( [0] => 13 [1] => Array ( [0] => undefined [1] => 15 ) [2] => Array ( [0] => undefined [1] => 14 ) ) [titulo] => Array ( [0] => title--- [1] => title--- [2] => title--- ) [url] => Array ( [0] => http:... [1] => http:... [2] => http:... ) )first array position retrives image id, but second and third no.
Another question, is how can i loop into this array? i want to do this because i need to set random ads and posts.
Thanks!
-
March 10, 2016 at 11:07 am #6050
-
-
AuthorPosts
Viewing 1 reply thread
- You must be logged in to reply to this topic.