Viewing 3 reply threads
  • Author
    Posts
    • #6236
      martinw
      Member

      hi there,

      i want to create child-data for the users.
      the data should be a specific custom-post-type.
      i want to be able to view all child-posts to one user in a table which is available under a workflow-tab. there i want to be able to add new child-posts to the selected user but only if one specific field of the existing child-posts is not set yet. else i should not be able to add a child-post to this user.

      so i read through workflow-tabs and i think i can crate this. however i have problems to create a list of posts with specific data as well as create a form to add new child-data.

      Can anyone give me a hint how to pass the arguments to a child-data-form?

    • #6239
      Steve
      Keymaster

      @martinw– I’m not clear on what you mean by child-data-form. Do you just want to view posts that have a particular user assigned? Not the author, correct?

    • #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?

    • #6245
      Steve
      Keymaster

      You can use this tutorial to save the user ID you want.

      Then you can get_posts() to display the posts for your user.

Viewing 3 reply threads
  • You must be logged in to reply to this topic.