Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to call【profile-loop.php】in【edit.php】

  • @mutoha

    Participant

    I want to call tamplate【A】in the template【B】.

    template【A】
    plugins\buddypress\bp-templates\bp-legacy\buddypress\members\single\profile-loop.php

    template【B】
    plugins\buddypress\bp-templates\bp-legacy\buddypress\members\single\edit.php

    But even if you write the following code in 【B】, 【A】 can not be called.

    <?php get_template_part( 'profile/profile', 'loop' ); ?>	
    <?php bp_get_template_part( 'profile/profile', 'loop' ); ?>

    What should I write in 【B】?

    Tthanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • @prashantvatsh

    Participant

    Hi,

    Please try this bp_get_template_part( 'members/single/profile/profile-loop' )

    Thanks

    @mutoha

    Participant

    Hi,
    My problem has been solved.
    Thank you for the kind thoughts!

    @prashantvatsh

    Participant

    Ok 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar