Forum Replies Created
-
AuthorPosts
-
SteveKeymaster@bayfish– Piklist doesn’t currently have “dynamic” formulas (i.e. you change one field, and the calculation changes for another). You would have to save you page, pull the data and do the calculation.
SteveKeymaster@wpkonsulterna–- I’m running a development version sorry. Email me at [email protected], and we’ll help you out.
SteveKeymaster@wpkonsulterna–- This fix will be in the next version of Piklist, but you can fix it now.
Open includes/class-piklist-form.php, and replace line 652:
if (!is_wp_error($object))
with this:
if (!is_wp_error($object) && $object->post_status != 'auto-draft')
SteveKeymaster1) Do you want to add Workflow tabs to the CPT bgmp?
2) What would go in each tab?
3) You can use this tutorial to display any taxonomy you want.
SteveKeymaster1) Do you want to add Workflow tabs to the CPT bgmp?
2) What would go in each tab?
3) You can use this tutorial to display any taxonomy you want.
SteveKeymaster@wpkonsulterna– This is a great idea, but I don’t think it’s going to work unless you want to hide the default publish box and build a new dropdown with post status (i.e. you would need to add
'scope'=> 'post'.I found this old plugin, and with a few tweaks, I made it work with a custom post type. You may need to test further:
function default_post_visibility() { global $post; if($post->post_type != 'MY_CUSTOM_POST_TYPE') { return; } if ('publish' == $post->post_status) { $visibility = 'public'; $visibility_trans = __('Public'); } elseif (!empty( $post->post_password)) { $visibility = 'password'; $visibility_trans = __('Password protected'); } elseif ($post->post_type == 'MY_CUSTOM_POST_TYPE' && is_sticky($post->ID)) { $visibility = 'public'; $visibility_trans = __('Public, Sticky'); } else { $post->post_password = ''; $visibility = 'private'; $visibility_trans = __('Private'); } ?>
SteveKeymaster@mattyd247– You can add a metabox and fields using Piklist for ANY Post Type… including those registered by other plugins like Woocommerce.
SteveKeymaster@norboo– Awesome!
show_admin_columnfor user taxonomies will be supported in the next version of Piklist. Closing this ticket.
SteveKeymaster@simon– There are TWO wpautop functions in WordPress… one PHP and one Javascript. What Kevin showed you is for PHP output. The wpautop parameter controls paragraph breaks in the editor. Here’s a little movie I put together to demonstrate.
SteveKeymaster@wpkonsulterna– It looks like you are trying to replace the default editor with a Piklist editor, correct?
Either way this is a bug. When setting the
scope => post, thevalueparameter doesn’t work correctly.
SteveKeymaster@norboo– Sorry for the late reply. Pikilst doesn’t support this yet, but since Piklist does everything the WordPress way, you can easily add this using standard WordPress actions. Place code in your main plugin file, or your themes functions.php. It should look like this when viewing the User List.
add_filter('manage_users_columns', 'user_column_header', 10, 2); add_action('manage_users_custom_column', 'user_column_data', 10, 3); function user_column_header($columns) { $columns['user_type'] = __('User Type'); return $columns; } function user_column_data($term_list, $column, $value) { switch ($column) { case 'user_type': $term = wp_get_object_terms($value, 'user_type'); if(isset($term[0])) { $prefix = ''; foreach ($term as $name => $value) { $term_list .= $prefix . $value->name; $prefix = ', '; } } else { $term_list = ''; } break; default: $term_list = ''; break; } return $term_list; }September 11, 2014 at 11:38 am in reply to: [Bug] Two file fields inside an add_more does not save correctly #2428
SteveKeymaster@simon– You’ve actually found two bugs:
1) This configuration does not play nice with the field template.
2) They don’t save properly.We will work on a fix.
SteveKeymaster -
AuthorPosts