Support Forum ยป User Profile

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Populate Select List with Custom Post Type Name #6942
    tonyrboiestonyrboies
    Participant

    Got the "select multiple" via the custom attributes. Am good to go. Btw, like the plugin a lot.

    in reply to: Populate Select List with Custom Post Type Name #6941
    tonyrboiestonyrboies
    Participant

    Okay, I was way offtrack. Have selected POST and now the select list is populating from the desired custom post type. I selected field type "Select Advanced" but how do I get that list to support multiple selections?

    in reply to: Populate Select List with Custom Post Type Name #6939
    tonyrboiestonyrboies
    Participant

    Thanks Truong, yes, I just want to pull posts from a single custom post type "staffmembers" and the code I have I think is more for pulling from any post type.

    So change this

    function your_prefix_register_meta_boxes( $meta_boxes ) {

    to this

    function your_prefix_register_meta_boxes( $meta_boxes, $options ) {

    Stuck on replacing $post_types = get_post_types( '', 'staffmembers', 'objects' ); even after reading the documentation, though. Goal is a dropdown list of the slugs of the custom post type "staffmembers" as the option value, and if possible the post name as the visible option name. If they need to be the same, that would work for the purposes of the list.

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