PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

using custom post_type 'tags' as categories in gf

  1. anointed
    Member

    In creating a new form for front end posting, I am trying to get gf to allow the user to select from an existing set of tags just like we can do for categories.

    The problem I am having is if I use the 'tags' gf button, then it gives a blank line where the user can manually type in a new tag.

    If I use the 'categories' button, then it will only display the categories, which are not associated with this post type.

    What I am trying to do is use the categories drop down, only to populate it with a custom taxonomy 'testimony-tags'. That way the user can only select pre-existing 'testimony-tags' terms to attach to their gf post.

    i.e.
    Church testimony post-type has taxonomy 'testimony-tags'. I have pre-populated testimony-tags with the following:
    healing
    salvation
    finances
    etc..

    I am trying to add a drop down to my gf where the user selects from the above choices.

    I've searched the forums, but do not see a code example on using a 'category' type drop down instead of the tags user input.

    please provide an example.

    thanks

    Posted 13 years ago on Monday May 31, 2010 | Permalink
  2. You posted another forum thread similar to this. There isn't currently an example as i'm not aware of anyone currently doing this. You would have to use a drop down field and then one of the post processing hooks to populate the tag field with the value of the drop down field that the user selected. This would have to be done via custom PHP and a post submission hook. As I mentioned in the other post, it's a good idea and we can look into making it possible to use the drop down or checkboxes with the post tag field.

    Posted 13 years ago on Monday May 31, 2010 | Permalink