• Resolved OldClicker

    (@oldclicker)


    Is there a simple way to ensure that a form mapped to an existing post type is always assigned a particular category?

    I can see how to do it with “Map form fields to post taxonomy” settings, but that displays all the categories for selection. I just want it to always assign a category without the user doing anything.

    Great plugin – thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    Greetings and happy new year!

    I can see how to do it with “Map form fields to post taxonomy” settings, but that displays all the categories for selection. I just want it to always assign a category without the user doing anything.

    sure, however you need to hook the action fired at the end of the mapping process and programmatically assign the newly saved post to the desired category.

    Thread Starter OldClicker

    (@oldclicker)

    Thanks for the reply. It’s pointed me in the right direction. I realise that despite some years use of WordPress, I’m pretty much a beginner when it comes to coding and functions. Happy New Year

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I will be doing a tutorial on action and filters in the coming months, so hopefully this kind of functional possibilities will become more obvious

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Force New Posts to a Category?’ is closed to new replies.