PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Set Post Status Conditionally?

  1. Is it possible to set the post status conditionally within a form? I have a sort of classifieds-ish site in which form results will create wp posts. Some are free and some paid. (site's not live yet, so can't include link). For the free posts, I want them set to draft status. For the paid posts, they can go live on completion of payment. But since they share the Post Title field, I seem to have to pick one or the other. Is there a way around this?

    Thanks in advance.

    Posted 12 years ago on Monday April 30, 2012 | Permalink
  2. Similarly, is there a way to set the submit button conditionally? I'd like it to say something like "Enter Payment Details" but that wouldn't apply to the free listings.

    Posted 12 years ago on Wednesday May 2, 2012 | Permalink