More from this Author

This topic contains 8 replies, has 2 voices, and was last updated by  cravenplan99 2 weeks, 2 days ago.

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

    cravenplan99
    Participant

    Supported

    Hi there, is it possible to edit the More from this Author section? I would like it to display different addresses from the same author and not the date.

    Many thanks.

    #38403

    CTHthemes
    Keymaster

    Would you give me more details about this? Some screenshot will be very helpful/

    #38481

    cravenplan99
    Participant

    Supported
    #38507

    CTHthemes
    Keymaster

    You have to edit from add-ons plugins’s php file: https://prnt.sc/q23ldn

    with get_post_meta( get_the_ID(), '_cth_contact_infos_address', true ); code for address value;

    #38520

    cravenplan99
    Participant

    Supported

    So, I have …

    <div class=”widget-posts-descr”>
    ” title=”<?php esc_attr( get_the_title() ); ?>”><?php the_title(); ?>

    <span class=”widget-posts-date”><i class=”fa fa-map”></i> <?php get_post_meta( get_the_ID(), ‘_cth_contact_infos_address’, true ); ?></span>
    </div>

    Instead of …

    <div class=”widget-posts-descr”>
    ” title=”<?php esc_attr( get_the_title() ); ?>”><?php the_title(); ?>
    <span class=”widget-posts-date”><i class=”fa fa-calendar-check-o”></i> <?php the_time(get_option(‘date_format’));?></span>
    </div>

    I must be doing something wrong because now I get this … https://prnt.sc/q2882d. Which is almost there but not displaying the address.

    Also, will I be able to put this file in my citybook-child folder so that when theme updates happen it will not be overwritten?

    Many thanks for your help.

    #38540

    CTHthemes
    Keymaster

    You missed echo before get_post_meta

    #38555

    cravenplan99
    Participant

    Supported

    Thank you, that worked.

    Also, will I be able to put this file in my citybook-child folder so that when theme updates happen it will not be overwritten?

    #38560

    CTHthemes
    Keymaster

    Yes, follow this guide: https://docs.cththemes.com/docs/advance-features/override-listing-type-builder-elements/

    #38602

    cravenplan99
    Participant

    Supported

    Fabulous, thank you.

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

The topic ‘More from this Author’ is closed to new replies.

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