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.

Embed form in certain categories only.

  1. locoroyale
    Member

    Hello. I am using the embed via shortcode to add a form to several hundred posts that already exist in my website. That is the easiest way since the posts already exist.

    There are a handful of categories however in which the form does not apply. Is it possible to restrict the form to certain categories or exclude categories?

    The form is a price quote inquiry and applies to a majority of the posts but not all.
    http://209.240.157.85.com

    Thanks!

    Posted 15 years ago on Monday August 9, 2010 | Permalink
  2. Gravity Forms doesn't have anyway to do this, you would need to do it as a customization.

    The easiest way to do this would be instead of embedding the forms in the posts themselves would be to add it to your theme template file using the function call to display the form. You could then use PHP to restrict the form from appearing in certain categories.

    Then the form call is centrally managed in the theme template file and not individual posts and you have more control over when it is and isn't displayed as you can use PHP to control that.

    If this is beyond your development capabilities i'd be glad to recommend a WordPress consultant with Gravity Forms development experience who could assist you with this.

    Posted 15 years ago on Monday August 9, 2010 | Permalink