Forum Replies Created

Viewing 15 posts - 61 through 75 (of 330 total)
  • Author
    Posts
  • in reply to: Conditional if post_belongs = false #7551
    Jason
    Keymaster

    Hi 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! šŸ™‚

    in reply to: Creating a CPT in a plugin – what am I doing wrong? #7550
    Jason
    Keymaster

    You have an extra comma preceding ‘author’ on line 39. Change ,'author' to 'author'. šŸ™‚

    in reply to: Is it true that Piklist is dead? #7549
    Jason
    Keymaster

    Hi 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!

    in reply to: Dynamic fields/metaboxes/post types #7548
    Jason
    Keymaster

    Ok. 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!

    in reply to: Embedding a form in an admin page #7535
    Jason
    Keymaster

    Hi @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! šŸ™‚

    in reply to: Dynamic fields/metaboxes/post types #7534
    Jason
    Keymaster

    Hi @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? šŸ™‚

    in reply to: Get the field label #7533
    Jason
    Keymaster

    Hi @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!

    Jason
    Keymaster

    Hey @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.

    in reply to: The issue upon Replacing the WordPress Post Editor #7524
    Jason
    Keymaster

    @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.

    in reply to: Is it true that Piklist is dead? #7523
    Jason
    Keymaster

    @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. šŸ™‚

    in reply to: Media Upload (issue with empty strings) #7522
    Jason
    Keymaster

    The most reliable way of fixing this is to use remove_post_type_support to remove the custom-fields feature 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.

    in reply to: show fields conditioned on taxonomy term? #7520
    Jason
    Keymaster

    @dameer:

    Please 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! šŸ™‚

    Jason
    Keymaster

    @Mehdi Salem: Glad you figured it out! Can you please elaborate on the js performance issues you had?

    Jason
    Keymaster
    in reply to: Is it true that Piklist is dead? #7517
    Jason
    Keymaster

    Hey 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. šŸ™‚

Viewing 15 posts - 61 through 75 (of 330 total)