• Resolved Marlimant

    (@marlimant)


    Hi:
    I have a form with an html inserted text (default title), and 3 custom fields as titles too, which changing according a selected menu.
    So I need your help to create a filter (I’m sorry my “Tarzan like” php code) like this:

    add_filter(‘cf7_2_post_filter-post-title’,’filter_post_title’,10,3);
    default $title = echo “My default static title text”;
    else
    $title= “[post_custom_field-title_one]”;
    return $title;
    else
    $title= “[post_custom_field-title_two]”;
    return $title;
    else
    $title= “[post_custom_field-title_three]”;
    return $title;

    Thank you.

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

    (@aurovrata)

    you have the right idea, but your PHP code has issues with it.

    I don’t give code support on this forum, that would simply take too much of my time, and frankly speaking you ought to hire a developer if you need coding support.

    I concentrate on general guidelines and bug fixing. For help with coding you should ask on a forum such as stackoverflow.

    Thread Starter Marlimant

    (@marlimant)

    I understand perfectly.
    Thanks for the reply and suggestions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple titles in one form’ is closed to new replies.