Forum Replies Created
-
AuthorPosts
-
SteveKeymaster@stebcom– I cleaned it up a bit and removed some parameters you probably won’t need. You had a few typos, like the function in a filter not matching the function you want to call.
The idea here, is to register the post type, and they assign the settings to the post type url, not the settings url.
add_filter('piklist_admin_pages', 'custom_options'); function custom_options($pages) { $pages[] = array( 'page_title' => __('Custom options', 'piklist') ,'menu_title' => __('Options', 'piklist') ,'capability' => 'manage_options' ,'sub_menu' => 'edit.php?post_type=custom_post' ,'menu_slug' => 'custom-options' ,'setting' => 'custom_settings' ,'save_text' => 'Save these settings' ); return $pages; } add_filter('piklist_post_types', 'custom_posts'); function custom_posts($post_types) { $post_types['custom_post'] = array( 'labels' => piklist('post_type_labels', 'Custom') ,'title' => __('Enter a new Custom Post') ,'public' => true ,'has_archive' => true ,'supports' => array( 'title' ,'editor' ) ,'rewrite' => array( 'slug' => 'custom-posts' ) ,'capability_type' => 'post' ); return $post_types; }
SteveKeymaster@cegodai– Can you email us your full plugin with the Post Type registration? We should be able to write you a script to convert the data.
SteveKeymasterUnfortunately, no. Look in the database. Your data is being saved as an array, which you cannot filter. If you want to filter the data you need to remove the
fieldparameter from the main group so each field is saved separately.
SteveKeymastertry the field both ways. Enter data and save, and then check your database. You should see a difference.
SteveKeymasterIf you look in your database, you will see how the data is saved, which is currently an array and won’t work for you.
Remove the main
fieldparameter and all your data should save individually:piklist('field',array( 'type' => 'group' ,'field' => 'muni' // REMOVE THIS ,'label' => __('Datos del servicio')
SteveKeymasterWhat are you trying to accomplish with the field you posted? What is that field supposed to do?
SteveKeymasterWhat do you mean you want to filter by ‘municipio’? On the front end? In your theme?
SteveKeymasterThe file looks good. Not sure why you would have issues. Was 0.9.3.6 a NEW install or UPGRADE from a previous version? If upgrade, do you know which version you upgraded from? Thank you for helping us resolve this.
SteveKeymaster@kalligator– All references to
strtolowerin all messages arrays have been removed to better match WordPress. This will be updated in the next version.
SteveKeymaster@kalligator– This is so odd since we can’t reproduce. Can you verify that your file matches this one: http://plugins.svn.wordpress.org/piklist/tags/0.9.3.6/parts/img/piklist-icon.svg
These are the lines that need to match:
width="18px" height="16px"
width="18" height="16"Thanks
SteveKeymasterLet us know when they are ready for prime time. We’d love to try them out.
SteveKeymaster@chrissoutham– Thank you for using Piklist and spreading the word.
July 7, 2014 at 6:47 am in reply to: Having issues creating a admin page with workflow tabs for forms #1974
SteveKeymasterGlad to hear it! Let us know if you need anymore help.
-
AuthorPosts