Duplicate phone

This topic contains 8 replies, has 2 voices, and was last updated by  jspvz1 6 months, 3 weeks ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #29059

    jspvz1
    Participant

    Support Expired

    Hello, first of all congratulate you for your work.

    I am trying to duplicate several text fields for the simple listing page. In particular I would need the name and phone to also appear in the first widget of the page without the need to create a new widget so that you do not have to enter the values ​​twice in the form. Is there any way to do it?

    Thank you

    #29081

    CTHthemes
    Keymaster

    You have to edit citybook-add-ons plugin .php file: http://prntscr.com/m9z7vr

    #29110

    jspvz1
    Participant

    Support Expired

    Yeah, but i want to clone phone from widget contacts to a new text appears in the first position of the main content and i dont know what code copy (before description or gallery for example) Can you help me?

    #29150

    CTHthemes
    Keymaster

    Send me the listing page to check.

    #29175

    jspvz1
    Participant

    Support Expired

    Yes, i want to add name and phone too. I send image

    Attachments:
    You must be logged in to view attached files.
    #29187

    CTHthemes
    Keymaster

    Try this: http://prntscr.com/mbx1kc

    echo get_post_meta( get_the_ID(), '_cth_contact_infos_phone', true );
    
    echo get_post_meta( get_the_ID(), '_cth_contact_infos_email', true );
    
    #29210

    jspvz1
    Participant

    Support Expired

    WORKS !, i edited the code for put a link to phone like this.

    <?php if(get_post_meta($post->ID, ‘_cth_contact_infos_phone’, true)) { echo ‘<div class=”pros”><p><span><i class=”fa fa-phone”> </i> Llámame: </span>ID, ‘_cth_contact_infos_phone’, true).'”>’.get_post_meta($post->ID, ‘_cth_contact_infos_phone’, true).’</p></div>’; } ?>

    Now i go to put the name label.

    Thank you

    #29213

    jspvz1
    Participant

    Support Expired

    Do you have any idea to clone the phone in the excerpt or custom excerpt automatically? Thank you

    #29214

    jspvz1
    Participant

    Support Expired

    SOLVED

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

The topic ‘Duplicate phone’ is closed to new replies.

New featues: CityBook - Listing & Directory WordPress Theme version 2.1.8 was outUpdate now
+