Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • in reply to: Custom Taxonomy with Optgroup #5928

    I didn’t know PHP that much to alter the code to generate custom taxonomy select dropdown with parent terms as optgroup. Anyone could help me?

    Thanks!

    in reply to: Can we use forms from frontend? #5919

    Wonderful! I’m sorry for my lack of basic PHP knowledge, since I was primarily a front-end coder.

    Your code example did the trick I’ve been looking for the past couple of days. Piklist definitely worth 10-stars, now I need to catch up with my PHP knowledge so I can use its power properly.

    Thank you!

    in reply to: Can we use forms from frontend? #5913

    Thanks, Steve.

    I already tried the conditional, and as expected, it works fine to prevents other roles to access it. However, users within the same role can still edit each other posts via the form if they put the post id on the edit url.

    I was trying to check if current user is the author of the post/form, but how to get the post id inside the form? I tried get_queried_object_id but it returns different number. Moreover, is there a way to check if it’s new post or edit post?

    in reply to: Can we use forms from frontend? #5910

    Thanks for the response, Steve.

    I already tried that with some custom capabilities, but it doesn’t seem to work. Just made a new thread here.

    Thanks!

    in reply to: Possible to deactivate css on front end? #5907

    Ah, I completely missed that. Sorry for the low-quality question. Thanks for your efforts on this wonderful plugin!

    in reply to: Custom Taxonomy with Optgroup #5906

    I was trying to replicate this code into the front end form.

    piklist('field', array(
        'type' => 'select'
        ,'field' => 'select_optgroup'
        ,'label' => __('Select with Option Groups', 'piklist-demo')
        ,'value' => 'third'
        ,'choices' => array(
          'Group 1' => array(
            'first' => __('First Choice', 'piklist-demo')
            ,'second' => __('Second Choice', 'piklist-demo')
            ,'third' => __('Third Choice', 'piklist-demo')
          )
          ,'Group 2' => array(
            'first' => __('First Choice', 'piklist-demo')
            ,'second' => __('Second Choice', 'piklist-demo')
            ,'third' => __('Third Choice', 'piklist-demo')
          )
        )
      ));

    But I can’t figure how to adjust the example to populate custom taxonomy. Any help appreciated!

    in reply to: Front End Form Taxonomy Not Saving #5905

    I see. Thanks Steve for the clarification.

    I’m wondering if there’s any temporary quick fix for the bugs?

    in reply to: Can we use forms from frontend? #5888

    @Steve, sorry to jump right in, but how to limit only post author is able to edit the form? Right now, anyone with the ID can edit it.

    in reply to: Possible to deactivate css on front end? #5887

    Anyone have solution for this?

    in reply to: Google Map #5872

    Thanks, ndbe! Tested your code and it works flawlessly on the backend.

    However, I was trying to replicate the same thing on the front-end, but the page returned blank after submit and no data was saved. Any idea how to resolve this?

    Thank you!

Viewing 10 posts - 1 through 10 (of 10 total)