• Resolved awesiome

    (@awesiome)


    Hi Aurovrata,

    How may I use your plugin to add a post to an existing post category? I have tried adding the post to categories by using your plugin category feature but this creates new categories. I would prefer to add the post existing post categories. Do you have some idea as to how I can achieve this?

    Thanks,
    Sam

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter awesiome

    (@awesiome)

    For instance I have a drop-down select field with three categories: “Category 1”, “Category 2”, “Category 3”. And I also have Post categories: “Post 1”, “Post type 2”, “Post type 3”. How can I make sure that when category 1 is selected, it goes to post type 1, when category two is selected, it maps to post type 2 and category 3 maps to post type 3.

    I have no problem updating my functions.php file if you can provide some sort of sample code for me to use and replace the category values with the ones on my website.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    HI @awesiome

    just to clarify your question, am I correct in understanding that you want your forms to be submitted / mapped to different post types depending on the user selection from a dropdown field?

    This is actually quite complex and not something the plugin will be able to do out of the box. I can see 2 different ways to solve this,

    • all post types are the same: in this scenario, if all your different post types have the same structure (meta-fields/post fields) but only differ in post types, then you could map your form to one of the given post-type, and subsequently hook the action fired as the end of the mapping process to programmatically change the post-type of the newly created post into the required post-type based on the submitted data.
    • one form for each post-type: alternatively you have multiple forms, one for each post-type, and an initial simple form with your dropdown select which redirects to the corresponding form for that post-type. The advantage of this solution is that it does not constrain your various post-types in their structure as it preserves more flexibility in mapping different sets of fields for each post-type,

    I hope the above helps.

    Thread Starter awesiome

    (@awesiome)

    Hi @aurovrata

    I do not want to map posts to different post types. The post type is the same. I just want to map to different post categories depending on the User’s selection.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    sorry, but I am at a loss as to what you mean…

    How can I make sure that when category 1 is selected, it goes to post type 1, when category two is selected, it maps to post type 2 and category 3 maps to post type 3.

    what do you mean by this statement if you are not talking about mapping to different post types?

    I just want to map to different post categories depending on the User’s selection.

    can’t you just have a dropdown taxonomy field which your user can simply select from?

    Thread Starter awesiome

    (@awesiome)

    Sorry for the confusion. Here is the issue, I have a dropdown list that the user can select from. The list has category names. So I want to map the post submitted to the category based on what the user has selected from the category field dropdown list.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    got it now!

    So you can map a post to existing categories using the taxonomy option at the bottom of the mapping admin page…. however I just realised that the taxonomy does not show up in the post admin page! A bug which I will fix shortly, give me a day or 2 and I will get back to you with a fix.

    You can still go ahead and map your taxonomy, it gets saved properly in the DB, I just need to register the taxonomy with the post.

    Thread Starter awesiome

    (@awesiome)

    Thanks a lot. I greatly appreciate the maintenance for the plugin.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    v3.3.1 fixed the issue.

    I greatly appreciate the maintenance for the plugin.

    maybe consider buying me a beer or 2 ??

    Thread Starter awesiome

    (@awesiome)

    I just did. The name of the PayPal sender starts with W******e but that’s from me.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    lovely, much appreciated.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Add Post to Existing Post Categories’ is closed to new replies.