ACF Repeater fields not working on single listing page

This topic contains 6 replies, has 4 voices, and was last updated by  Kiran 5 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #470295

    Robert Armstrong
    Full Member
    Post count: 24

    Hi,

    I am using ACF fields for my custom work with geo directory plugin. The ACF single field working fine on single listing page but when i fetch repeater field on single listing page that not show any data on single listing page.

    Can you help me about this matter.

    Thanks in Advance.

    #470375

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    I doubt you can use ACF to add custom fields to listings. We use custom database tables and queries.

    I asked to the developer to have a look at your question and see if there is a workaround.

    Thanks

    #470446

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    I am not even sure what you are asking, i am not sure how you are using or trying to use ACF, maybe if you explain more what you are doing i can help more?

    Thanks,

    Stiofan

    #470533

    Robert Armstrong
    Full Member
    Post count: 24

    I am using this method to get repeater fields with listing page hook

    add_action(‘geodir_details_main_content’, ‘get_detail_page_content’, 40);
    function get_detail_page_content() {

    if(get_field(‘certificate’)):

    while(the_repeater_field(‘certificate’)):
    echo the_sub_field(‘lecter’);
    endwhile;

    endif;

    }

    #470677

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Not sure if its related, but that function seems to be depreciated: https://www.advancedcustomfields.com/resources/the_repeater_field/

    Stiofan

    #470995

    Robert Armstrong
    Full Member
    Post count: 24
    This reply has been marked as private.
    #471665

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
Viewing 7 posts - 1 through 7 (of 7 total)

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

Open Support Ticket