formidable forms in geodirectory tabs

This topic contains 3 replies, has 2 voices, and was last updated by  Mandy Moore 6 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #412182

    Mandy Moore
    Buyer
    Post count: 67

    Hi, I followed the tutorial https://wpgeodirectory.com/formidable-forms-in-geodirectory-tabs/ to add a form into our custom gd_business post type. but how would i amend the code to allow the form to be used with two different custom post types – gd_business and gd_property?
    Thanks, Mandy

    #412216

    Paolo
    Site Admin
    Post count: 31206

    try changing this:

    
    
    
     if ($post->post_type=='gd_hotel' && $post->geodir_email) {

    to

    if ($post->post_type=='gd_business' || $post->post_type=='gd_property' && $post->geodir_email) {

    I haven’t tested it, let us know if it helped.

    Thanks

    #412221

    Mandy Moore
    Buyer
    Post count: 67

    Hi, that code gave a 500 error

    #412224

    Mandy Moore
    Buyer
    Post count: 67

    sorted. i used
    if ($post->post_type==’gd_business’ or $post->post_type==’gd_property’&& $post->geodir_email) {

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket