• Resolved symbi0tic

    (@symbi0tic)


    Hello, I’m having a problem where when looking at the user’s address field either in WordPress > Dashboard > Users or in “Edit Client” in a Quote/Invoice. I notice in the Address field the address appears correctly but has the HTML paragraph tags <p> </p> around them. I am using the CF7 integration to merge these fields. I am also using the Address autocomplete Contact Form 7 plugin to autocomplete the address with Google Places API. All other fields appear normally.

Viewing 1 replies (of 1 total)
  • Thread Starter symbi0tic

    (@symbi0tic)

    Found out what the problem was.

    /public_html/wp-content/plugins/sliced-invoices-contact-form-7/sliced-invoices-contact-form-7.php

    For the Invoices or Quotes section, it creates an array and then modifies both the Address and Extra Info field of the WordPress users to be a paragraph, preemptively, to correct any double-line breaks and to allow it to break lines correctly.

    It does this using the wpautop() | Function.

    However, in my situation, I don’t need this extra functionality so I simply changed it from this:

    // client
     $client_array = array(
         
         'address' => wpautop( $address ),
         'extra_info' => wpautop( $extra ),
    
    );

    To this:

    // client
     $client_array = array(
         
         'address' => $address, //was wpautop( $address ),
         'extra_info' => $extra, //was wpautop( $extra ),
    
    );
Viewing 1 replies (of 1 total)
  • The topic ‘sliced_client_address appearing with tags’ is closed to new replies.