Shortcode filters not working

BP Profile Search Shortcode filters not working

  • Author
  • #11892 Reply


    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!

    #11893 Reply
    Plugin Author

    Hello Clew,

    Could you please paste the BP Profile Search debug info, so I can try to replicate your issue? For details, see:

    #11894 Reply

    Version 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.php

    #11895 Reply
    Plugin Author

    Hi 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

    #11896 Reply

    I’m not seeing that string in the file. Here’s the code in index-teachers.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>
    <?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(); ?>
    #11898 Reply
    Plugin Author

    Yes, 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.

Reply to: Shortcode filters not working
My Information