Home Forums Plugin Support WP User Frontend Pro Programmatically add a WPUF form to post for edit

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Nayem 3 years, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #56379

    aman
    Member
    Post count: 6

    I am creating a custom post type using this plugin but having an issue when a user try to edit it because a WPUF form is not associated with the post.

    In wp-admin, I see an option to add a WPUF Form to the post but in my situation, a user will never log into wp-admin and will create a post via front end.

    How do I attach a form to this post programmatically perhaps when the post is saved ?

    #56463

    Nayem
    Moderator
    Post count: 6480

    Hello Aman,

    Did not you create any form to post custom post type?.

    #56750

    aman
    Member
    Post count: 6

    Yes I did but it does not attach a form. Nevertheless, I have added a hook in functions.php to attach a form to this custom post on save.

    #58929

    Nayem
    Moderator
    Post count: 6480

    Hello Aman,

    I will suggest you to use a plugin to create custom post type. It will be easy I think.

    Thanks.

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

The topic ‘Programmatically add a WPUF form to post for edit’ is closed to new replies.