Forum Replies Created
-
AuthorPosts
-
SteveKeymaster@irene– Welcome to the Piklist community!
When you press “Add New Post”, WordPress sets the Post Status to
auto-draft. So just use the status parameter to tell Piklist you only want to show the meta box when the post status is auto-draft.Add this to your comment block:
Status: auto-draft
No need to use the
newattribute.newis really used to NOT show a metabox on the new page:New: false.Let us know if you need anything else.
SteveKeymasterGreat. Closing ticket
SteveKeymasterThis reply has been marked as private.
SteveKeymasterGreat. Closing ticket
SteveKeymasterGreat. Closing ticket.
SteveKeymaster@vagelis– You’re so close!
A few issues with your parameters:
1)Post Type: services, post, page: you had it set toservice(singular), but your post type is plural.
2)New: true: remove. You really only need if setting to false.
3)Status: all:allis not a valid status. You would either have to type all the statuses here, or just remove this.
4)Order: none: if you don’t want to set theorder, then just leave this out.You comment block should look like this:
/* Title: Test Description: Test metabox Post Type: services, post, page Context: normal Priority: high Locked: false Collapse: true */
Let us know if you have any other questions.
SteveKeymasterWelcome to the Piklist community!
Custom fields still need to be added to list tables the old fashioned way. Here’s a good post on how to do it.
SteveKeymasterI guess I didn’t understand your question. Can you provide more details?
SteveKeymasterThis should work. Place it in your main plugin file or your themes
functions.phpfile:add_filter('piklist_empty_post_title', 'my_empty_post_title', 10, 2); function my_empty_post_title($data, $post_array) { global $current_user; get_currentuserinfo(); return $post_array['post_type'] == 'YOUR-POST-TYPE' ? $current_user->user_login . '-' . time() : $post_array['post_title']; }
SteveKeymasterPiklist has a filter,
piklist_empty_post_title, that may help you. Check out this support ticket >Let us know if that helps.
SteveKeymaster@fmalinge— I’m not 100% clear on your scope, but I’m guessing you can do this in WordPress/PHP/Piklist.
And yes, Piklist works well in multisite.
SteveKeymasterGreat! Closing ticket.
SteveKeymaster@vgrch– I’m not 100% clear on your question, however, this may help.
You don’t have to include the field code in each part file. You can have it sit in your main plugin file wrapped in a function, and then call that function in the part file.
For example:
In your main plugin file, or theme’s
functions.php, add this:function my_text_field() { $field = array( 'type' => 'text' ,'field' => 'my_text_field' ,'label' => __('My Text Field') ); return $field; }And then in your parts files just call this:
my_text_field();Does that help?
SteveKeymaster@fmalinge– Welcome to the Piklist community!
It sounds like you will need lots of post types and custom fields. This is basic Piklist and it does it very well.
If you can do it in WordPress… you can do it faster, easier and with more power with Piklist!
The best part of Piklist is that it’s easy to get started and use it.
Feel free to post specific questions on the support forum. We’re here to help!
SteveKeymaster@Samer– You will have to use CSS to remove the button for now. This is on our list of todos.
-
AuthorPosts