Forum Replies Created
-
AuthorPosts
-
JasonKeymasterHi Anthony!
I assume that’s not working? I’d probably just use get_posts, use
'fields' => 'ids'to make the query leaner, and check to see if the result is empty. In a shortened form you probably won’t use exactly, something like this:if ( empty(get_posts($args)) ) { }Hope this helps! š
JasonKeymasterYou have an extra comma preceding ‘author’ on line 39. Change
,'author'to'author'. š
JasonKeymasterHi Sergey!
Thanks for taking an interest! Please don’t take a dip in public activity as Piklist being dead. That’s a bit of a leap users sometimes make in a panic. Piklist is free and open-source, as such all users are able to fork Piklist and do whatever they need. That said, it’s a project of passion for us authors and we use it regularly so we want it to be high quality. If there’s a specific bug that’s breaking all of your work, can you please open another thread and point it out so we can best look into it? Thanks!
JasonKeymasterOk. Still not completely sure I follow. Are you hoping for an API that returns the field HTML or something? Or are you hoping to register the metaboxes and fields at the time of registering post types? Something else? I just want to make sure I understand what you’re looking for before I try and answer.
This line confuses me, can you please explain:
Iām not able to create PHP files with comments without actually generating these files based on the API output.
Thanks!
JasonKeymasterHi @johnvanham!
So you’re adding Bootstrap to the whole of the admin-side? Not sure I’d recommend doing that as it could have unexpected results down the line with WordPress since it’s an entire CSS framework (assuming itself to be the threshold), whereas Piklist is extending the WP admin-side styles. You could try fixing it yourself by adding another stylesheet that more acutely reverses Bootstraps hiding styles for Piklist forms, but I can’t guarantee that won’t create new issues elsewhere.
Hope this helps! š
JasonKeymasterHi @pionect@
So am I understanding you correctly that you’re trying to only get specific fields to show up for specific post types? If so, then you can set the comments at the top of the file to reflect whatever criteria you want for that metabox file: https://piklist.com/learn/doc/post-type-meta-boxes/
Am I understanding you correctly? Does that help? š
JasonKeymasterHi @norboo!
The label isn’t stored in any way, it’s simply there to help the user when filling out fields. If you really want something like that, then you can use a group field with either a hidden or settable label field:
piklist('field', array( 'type' => 'group', 'field' => 'clothes_width', 'label' => 'Width', 'fields' => array( array( 'type' => 'text', 'field' => 'value', 'columns' => 12, 'value' => 'N/A', 'attributes'=> array( 'class' => 'text' ) ), array( 'type' => 'hidden', 'field' => 'label', 'value' => 'Width' ) ) ));Hope this helps!
November 12, 2016 at 12:50 am in reply to: Filed group containing file upload field issue: corrupted postmeta after update #7530
JasonKeymasterHey @Mehdi Salem!
Thank you for taking the time to put that together! I’ve made a note to the team. We’ll probably make a ticket or something out of this. We’d definitely like to continue to make optimizations.
To be honest, while I use Piklist on every project, I haven’t run into a scenario yet where there were mass amounts of complex fields. Not to say it isn’t possible. I did at one time but then decided it wasn’t a good user experience and so I thought of a more creative way of giving the user options. This isn’t an excuse for performance issues, but merely a suggestion that it may be worth exploring if there’s a creative way of improving the UX while cutting down on massive fields.
JasonKeymaster@girindev: WordPress 4.6 broke the ability for Piklist to fields to write directly to post fields (e.g. post_content, post_title, etc.). The bug has been fixed but we need to release a version of Piklist with the fix. I’ll try to push this along.
JasonKeymaster@eddie2390: Come on, man. It’s not quite so black and white as all that. I went ahead and posted a solution to that thread. I apologize that it wasn’t answered at the time, I can appreciate the inconvenience. š
JasonKeymasterThe most reliable way of fixing this is to use remove_post_type_support to remove the
custom-fieldsfeature for the page/post post types. Also, make sure not to add that for your own custom post types. It’s problematic with Piklist as it writes over the meta immediately after Piklist writes to it.
JasonKeymasterPlease see this concerning Piklist notbeing dead: https://piklist.com/support/topic/is-it-true-that-piklist-is-dead/
Otherwise, the documentation has definitely been strained. I’ll agree to that. You’re right that some of the filters don’t exist anymore, as at 0.9.9.9 there were some significant internal changes that greatly simplified and improved how parts (i.e. metaboxes, settings, etc.) are processed within Piklist. Consequently some of the filters were consolidated.
I believe
piklist_part_process(first parameter is $part, second is $folder) may be the filter you’re looking for to finish off your list. Since you’re in the code, look at the piklist::process_parts function. That’s how all parts within Piklist are processed and subsequently displayed. If you return null/false in that filter then the part is not displayed.Hope this helps! š
November 11, 2016 at 1:16 pm in reply to: Filed group containing file upload field issue: corrupted postmeta after update #7519
JasonKeymaster@Mehdi Salem: Glad you figured it out! Can you please elaborate on the js performance issues you had?
November 11, 2016 at 1:16 pm in reply to: Filed group containing file upload field issue: corrupted postmeta after update #7518
JasonKeymaster@eddie2390: Nope. It’s not dead. š Please see: https://piklist.com/support/topic/is-it-true-that-piklist-is-dead/
JasonKeymasterHey guys!
I’m one of the authors of Piklist and, while Kevin has been very busy this year, Steve and I are still around. I apologize I’m not as reliably on the forums as Steve. He’s killer at support. My agency uses Piklist on every single project, so it is far from dead. We haven’t really added any new features in a while, but in my opinion Piklist has needed a season os solidifying and fixing bugs for a while. I’ve continued to fix bugs as I find them, but I’ve really found very few as it is getting pretty solid (and the bugs are pretty niche).
Rest assured the project is by no means dead. š
-
AuthorPosts