Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: users child-table #6241
    martinw
    Member

    ah yes that’s it i need to assign a user to a post other than the author.
    so i thought i have a workflow-tab for this kind of post and show all posts related to this user.
    also i show a button to create a new post for this user.

    how can i make sure the users id gets to the new post since it is not the current-user id?

    in reply to: Trigger actions with buttons #6240
    martinw
    Member

    thank you Steve!
    is there a way to create buttons with piklist so that certain functions are triggered when i click on them?
    i actually don’t need any fields at all since fill out the fields automatically on the server.
    if i did this in the browser the user would be able to manipulate the values.

    in reply to: work with relationships #6235
    martinw
    Member

    Did it!

    
    $array = array_merge(
        array(0 => "--- None ---"),
        piklist(            
            get_posts(array(
                'post_type' => 'my-custom-post-type',
                'numberposts' => -1,
                'orderby' => 'title',
                'order' => 'ASC'
            )), array('ID', 'post_title')
        )
    );
    piklist('field', array(
        'type' => 'select'
        , 'field' => 'current_selection'
        , 'label' => __('Current Selection')
        , 'description' => __('Currently selected Post')
        , 'attributes' => array(
            'class' => 'text'
        )
        , 'choices' => $array
    ));
    
Viewing 3 posts - 1 through 3 (of 3 total)