Forum Replies Created
-
AuthorPosts
-
November 9, 2014 at 8:35 am in reply to: how to add piklist_admin_pages without post type, independent admin pages ? #2683
SteveKeymaster@ajayphp– Do you mean you want to create a page similiar to the Piklist “About” page in the wp-admin?
SteveKeymaster@ajayphp– Is this two separate issues?
1) You created a plugin and it gave you an error?
–Please create a separate ticket for this and post the code for your plugin. What error did you receive?
2) You activated wp-helpers and checked off xml-rpc and you got another error?
–I can’t reproduce. What other options do you have checked?
SteveKeymaster@kristjan07– I don’t think this is possible. What WordPress action do you want to hook to on the list page?
SteveKeymaster@ajayphp– Please paste the code you used to register your post type. Piklist enhances the standard WordPress
register_post_typefunction, it does not replace it.
SteveKeymaster@ajayphp– Do you see the content saved in the admin? Instead of preview do you see the content when you view it on front end?
November 9, 2014 at 8:12 am in reply to: how to convert post field post_content as normal content area instead of editor #2676
SteveKeymaster@ajayphp– Try this tutorial. But instead of using the
editorfield, usetextarea.
SteveKeymaster@sajonara– Piklist has a post-to-post relationship field. But this is a great solution as well. Thanks for sharing!
SteveKeymasterClosing this ticket since we are working on the issue here >
SteveKeymaster@atana– It was really tough to debug your code so I just wrote it from scratch. I also attached a screenshot so you can see what it should look like. Let me know if this works for you.
piklist('field', array( 'type' => 'group' ,'field' => 'atanas_settings' ,'label' => __('Settings') ,'add_more' => true ,'fields' => array( array( 'type' => 'select' ,'field' => 'country' ,'label' => 'Country' ,'columns' => 12 ,'choices' => array( 'US' => 'United States' ,'EU' => 'European Union' ) ) ,array( 'type' => 'select' ,'field' => 'fruits' ,'label' => 'Fruits' ,'columns' => 12 ,'choices' => array( 'apples' => 'Apples' ,'oranges' => 'Oranges' ) ) ,array( 'type' => 'select' ,'field' => 'apples' ,'label' => 'Apples' ,'columns' => 12 ,'choices' => array( 'aceymac' => 'Aceymac Apple' ,'akero' => 'Akero Apple' ) ,'conditions' => array( array( 'field' => 'atanas_settings:fruits' ,'value' => 'apples' ) ) ) ,array( 'type' => 'select' ,'field' => 'oranges' ,'label' => 'Oranges' ,'columns' => 12 ,'choices' => array( 'blood' => 'Blood Orange' ,'navel' => 'Navel Orange' ) ,'conditions' => array( array( 'field' => 'atanas_settings:fruits' ,'value' => 'oranges' ) ) ) ) )); piklist('field', array( 'type' => 'select' ,'field' => 'shipping' ,'label' => 'Shipping' ,'choices' => array( 'ground' => 'Ground' ,'ups' => 'UPS' ) ));Attachments:
You must be logged in to view attached files.
SteveKeymaster@atanas– The original issue was “Custom save/load”. Is this still an issue? Is the code you posted related to this issue?
SteveKeymaster@atanas– Your code is throwing some warnings for me so it’s tough to debug.
What exactly do you want to happen? Which fields should be within the add_more?
SteveKeymaster@wpkonsulterna– If you remove fabric.js do you still see the issue?
SteveKeymaster@atanas– Piklist uses core WordPress functions, and saving post meta is usually one value per record. If you want to save a group of field data in one array, use the Piklist
groupfield. You can see a sample of this in the built-in Demos:
Add New Demo > Groups tab > Address (Grouped).Let me know if that helps.
-
AuthorPosts