BP Profile Search › Shortcode filters not working
-
AuthorPost
-
Clew
GuestHello,
I’m using the bp Profile Search plugin on my site and I’ve encountered an issue with the shortcodes.
The basic [bp_directory] shortcode works fine, but when I try to add filters, they don’t work.
The index portion of the following works properly, but my custom directory template won’t load:
[bps_directory template=”members/index-teachers, members/members-loop-teachers”]
I did make sure the path is correct for the directory loop template.I don’t have any caching plugins installed so I’m not sure what the issue might be.
Thank you!
andrea
Plugin AuthorHello Clew,
Could you please paste the BP Profile Search debug info, so I can try to replicate your issue? For details, see:
Clew
GuestVersion 5.4.7
Platform BuddyPress 10.6.0
Theme Musicians Union Local 99 1.0
Members index template /themes/MusiciansUnionLocal99/buddypress/members/index.php
Members loop template /themes/MusiciansUnionLocal99/buddypress/members/members-loop.php
Form template(s) /plugins/bp-profile-search/templates/members/bps-form-default.phpandrea
Plugin AuthorHi Clew,
You can try this:
— Edit index-teachers.php
— If you can locate the string members/members-loop, replace it with members/members-loop-teachers
Clew
GuestI’m not seeing that string in the file. Here’s the code in index-teachers.php:
<?php /** * BuddyPress Teachers Directory * * @since 3.0.0 * @version 6.0.0 */ ?> <div class="is-layout-flow wp-block-group gold-block-2"> <div class="wp-block-group__inner-container"> <h2 class="has-text-align-center">Explore Music by Learning From The Best.</h2> <p>If you’re looking to learn a new instrument or improve your skills, our members can teach you the techniques and fundamentals to better your performance. We are world class professionals, and we have a passion for sharing our knowledge and our love of our instruments—we can help you on the basics, we can help you prepare for professional auditions, or we can simply help you discover how wonderful playing music can be.</p> <p>Browse through our directory and find your next music teacher here.</p> </div> </div> <?php bp_nouveau_before_members_directory_content(); ?> <?php if ( ! bp_nouveau_is_object_nav_in_sidebar() ) : ?> <?php bp_get_template_part( 'common/nav/directory-nav' ); ?> <?php endif; ?> <div class="screen-content"> <div id="members-dir-list" class="members dir-list" data-bp-list="members"> <div id="bp-ajax-loader"><?php bp_nouveau_user_feedback( 'directory-members-loading' ); ?></div> </div><!-- #members-dir-list --> <?php bp_nouveau_after_members_directory_content(); ?> </div><!-- // .screen-content --> <?php bp_nouveau_after_directory_page(); ?>
andrea
Plugin AuthorYes, not every template contains that.
I have no other ideas now, but if you wish I can take a look at your testing site. You can send the login credentials using my Contact page so they will stay private.
-
AuthorPost