Viewing 7 replies - 1 through 7 (of 7 total)
  • lackcy

    (@lackcy)

    Hi,

    I would like the same function too. Radio buttons would also be useful.

    Anyone please?

    ganchan

    (@ganchan)

    yes this would be very useful to create a privacy field. i’ve manage for now using a “label privacy” “field select yes / no” “help text the privacy infos with a link to privacy inside”.

    Bump. This Plugin is perfect but the checkbox/radio button feature is essential. This should be easy to code in because the ‘type’ dropdown already contains Text Box, Text Area, and Dropdown. Why would it not include checkbox and radio button? I made a plugin that creates a metabox with checkboxes that write to wp_postmeta table (which is just what wp-user-frontend does) and it was really simple. Any hope for this in the near future?

    Ok, I got this to work using Tareq’s ‘How to extend wp front end’ post (Here: https://tareq.wedevs.com/2012/04/how-to-extend-wp-user-frontend/). The bad news is it had to be coded manually, which I won’t go in to. I already had a plugin made with some checkboxes so I just hooked it in with his tutorial and added some additional code. Not too difficult but it should certainly be an option in the plugin settings, it involves very little code so it would be really simple to add.

    hi gpspake,

    if you can, please let us know how you did this. I’m trying to figure out how to get a date picker custom field, or tweak the expiration date option to be a date. Is the coding you made complicated? Does the plugin you used have a date picker that can be ported?

    thanks in advance.

    @sebastian
    I’m no php master, and by that I mean I’m brand new, so a lot of what I did involved copying and pasting. In my case I used this tutorial to make a metabox that saved custom fields for posts. I had to tweak the code in the tutorial to save a value from a checkbox instead of text. Even if this tutorial doesn’t apply to what you are trying to do, I would recommend reading and walking through it because it does a very good job of explaining a lot of important things like saving meta data. So once I had completed this tutorial, I literally just added the hooks from Tareqs article in the previous post and with minor tweaking it works. The key is to get something to work at all and understand why, for instance get a checkbox you made to appear in the add post page and then come back and make it functional. I should also mention that I put all of my code in to a plugin, which is actually very easy if you google it and find a good tutorial.

    Good luck!

    thanks so much, gpsnake!
    like wise I’m pretty good at copy pasting ??
    will read through your suggested articles.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: WP User Frontend] Add New Custom Field Type "checkbox"’ is closed to new replies.