Forum Replies Created

Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • in reply to: Taxonomy Dropdown List – All categories option #3591
    jcrist
    Member

    You could store the choices as a variable, add “All Categories” with a value of -1, then use ksort:

    $choices = piklist(
          get_terms('category', array(
            'hide_empty' => false
          ))
          ,array(
            'term_id'
            ,'name'
          ));
    $choices[-1] = 'All Categories';
    ksort($choices);

    Then references $choices as the…choices

    in reply to: Post relationship order #3520
    jcrist
    Member

    This might be a bit specific for my use but I was thinking that the related-posts could be ordered on a page-by-page basis. For example, on the attorney/aop instance above, Attorney1 wants AOP2 to display first while Attorney2 wants AOP1 first.

    Kind of like what ACF does with their relationship field, but keeping it inside a taxonomy box and keeping it (mostly) the wordpress way. This would require the order to be saved in either post_meta or somewhere else right? I suggested an additional column so you wouldn’t have to query the postmeta just to get the order.

    in reply to: Post relationship order #3515
    jcrist
    Member

    While the solution did work just fine, it feels a little cumbersome. I saw a post somewhere that said you are rethinking the post-relate, any insight on that?

    I have an idea, and I’m sure you’ve have one similar but I’ll throw it out there anyway — allow users to sort related-posts inside of the meta-box like http://jsfiddle.net/PtskU/ so the order is customizable on a post-by-post basis. I figure that since there’s a new table in the DB for post-relationships, you could add something like the menu_order column in wp_posts.

    in reply to: Disabled Value #3491
    jcrist
    Member

    Bingo, thanks Steve.

    in reply to: Disabled Value #3489
    jcrist
    Member

    Correct, user should be able to see the field but it is disabled.

    Not a big deal as I ended up hiding the field for non-admins but still seems strange that the value disappears.

    in reply to: Add A Metabox Right Side of Editor #3379
    jcrist
    Member
    in reply to: Post relationship order #3133
    jcrist
    Member

    Thanks for the tip, Steve. This should work just fine for one-way relationships but say I also wanted to display the lawyers on the AOP page?

    in reply to: Removing attachment causes it to jump right back after update #2967
    jcrist
    Member

    I and some others were having this issue as well — https://piklist.com/support/topic/cant-remove-file-with-the-file-field/

    Great to see a patch, hope to see it in the next update!

    in reply to: Can't remove file with the file field #2898
    jcrist
    Member

    This is still an issue, correct? We are unable to remove PDF files after selecting in a file_upload meta-box.

    in reply to: Roadmap? #2882
    jcrist
    Member

    Just curious if this is planned?

    in reply to: Repeater with a conditional inside #2834
    jcrist
    Member

    Just found this thread — https://piklist.com/support/topic/conditions-in-add-more-groups/ so we use it as a template for our fields and see how it goes.

    in reply to: Flexible content #2593
    jcrist
    Member

    Thanks for the reply Jason. After some consideration I’ve decided that it would be best not to use something like flexible content for the framework I plan on creating 🙂

Viewing 12 posts - 16 through 27 (of 27 total)