• Resolved bergrachael

    (@bergrachael)


    Hi,

    I have quite complex forms that I am trying to create custom posts for on CF7 form submission.

    I am using Smart Grid-Layout Designs for Contact Form 7 with tabbed sections, but even if I don’t include the tabbed sections, I am having trouble getting form values over to the custom post. The custom post is being created, but there are no custom fields at all.

    I have been playing around with the forms/mappings for many hours and now am getting this error when I do a “quick edit” on a form to delete the mapping : “Your key in not unique or contains spaces”. (None of my form key’s have spaces or are duplicated). So I’m wondering if somehow I have broken something with all my testing and trying to get things working.

    https://paste.pics/DA66A

    Are you able to help me reset everything and get the post creation working? I have tried adding to existing posts (I want to create custom post types that are a submenu under the parent custom post, and it didn’t seem I could do this with your plugin?”. I am using CPT UI to create my custom post types. I tried choosing “New Posts” and creating the custom post from scratch but I don’t have any of the attributes show up and then I wasn’t sure if I could add the custom post as as submenu on an existing custom post.

    https://paste.pics/DA67D

    I am so grateful for your plugins, they have been so helpful, I think I just got in over my head with trying to create posts from these very complex forms.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter bergrachael

    (@bergrachael)

    By the way, I forgot to mention I am using v5, which you probably will notice from my screenshots, but wanted to add this info.
    Thank you.

    Thread Starter bergrachael

    (@bergrachael)

    Hi,

    I’ve managed to get the custom fields loaded into an existing custom post type that I set up in CPT UI by using ACF.

    So the questions I have problems I have remaining are:
    1. I still have the error about the key not being unique or there being a space.
    2. I still don’t have post attributes showing when I choose to create a new custom post in my mapping
    3. If I chose to create a new custom post in my mapping can I make it a submenu of another custom post type?

    Thanks again for your wonderful plugins and your support. I’ll definitely leave you a review.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I am using Smart Grid-Layout Designs for Contact Form 7 with tabbed sections,

    that’s not an issue, the tabbed fields will be stored as arrays, so you need to make sure you understand how those are stored in your DB to reconstruct and make send of your saved data.

    (None of my form key’s have spaces or are duplicated). So I’m wondering if somehow I have broken something with all my testing and trying to get things working.

    oops! That’s very odd and the first time I see this. Is it only on this form? The key is simly the wpcf7_constact_form post slug. So you could actually inspect your wp_post table in your DB and search the corresponding post ID to see if the post_name field (slug) has any spaces in it.

    It does look like the post somehow got corrupted.

    (I want to create custom post types that are a submenu under the parent custom post,

    not sure what you mean by this.

    I am using CPT UI to create my custom post types. I tried choosing “New Posts”

    if you use a plugin to create a post type, that type needs to be actually registered in the wp_options table to ensure the Post My CF7 form plugin pick it up… some CPT plugins will only register a post type once the first post is created….a chicken and egg situation.

    Much simpler to let the plugin handle the post creation for you, as it uses std WordPress functionality.

    “New Posts” and creating the custom post from scratch but I don’t have any of the attributes show up

    ok, so there is a definite problem here. You should see a whole set of attributes (at in the video tutorial). Please check if you have any javascript errors on your page that is affecting the display of these attributes.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    1. I still have the error about the key not being unique or there being a space.

    please see my reply above.

    2. I still don’t have post attributes showing when I choose to create a new custom post in my mapping

    that’s likely due to a javascript error on your page (maybe some conflict with another plugin), please check.

    3. If I chose to create a new custom post in my mapping can I make it a submenu of another custom post type?

    yes, but this is much more complex to achieve and you will need to understand how dashboard menu pages/sub-menu pages are handled by WordPress…you’ll need to ask in the general WordPress forum for help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom fields not created in custom post’ is closed to new replies.