Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #264344

    Weltstudent
    Participant

    Hi,

    I just set up my Forums page and unfortunately the bbpress search seems not to be working like it does on the demo pages 🙁 It just shows the title and some text but no clickable results.

    Login data & url provided in next post.

    #264355

    Christopher
    Moderator

    Hi there,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #264367

    Weltstudent
    Participant
    This reply has been marked as private.
    #264566

    Rad
    Moderator

    Hi there,

    Do you have any custom query that affects global query? Like pre_get_posts filter. Unfortunately, I can’t thoroughly check it. Would you mind providing your admin login with full permission, and your ftp login credentials too.

    Thanks!

    #265289

    Weltstudent
    Participant
    This reply has been marked as private.
    #266938

    Zeshan
    Member

    Hi Dominik,

    Thanks for the logins!

    Upon checking, I’m seeing that the search is somehow calling the default search template instead of the bbPress search template (see: http://prntscr.com/724h45). In this case, to narrow down the issue, you could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

    Let us know how it goes.

    Thanks!

    #267526

    Weltstudent
    Participant

    Hi,

    in the end it had nothing to do with a plugin or query. The problem was that I had a custom bbpress template stored within the child theme. Changing back to standard solved my issue here.

    Now I just have no idea how I can insert some custom content above all my bbpress pages. Do you have a solution for that?

    Thanks & regards

    #267722

    Rue Nel
    Moderator

    Hello There,

    The best way to insert your custom contents above all your bbpress pages is by adding a custom function to handle it. Please add this code in your child theme’s functions.php

    function add_custom_bbpress_content(){ ?>
      
      <!-- you can add your custom contents here -->
    
      <div class="custom-header-container">
          <!-- our custom header codes here -->
          <img src="http://placehold.it/1200x120" alt="My custom header">
      </div>
    
    <?php }
    add_action('x_before_view_global__content-bbpress', 'add_custom_bbpress_content');

    In our sample code, it places a custom banner image just above your bbpress pages. you can replace it with your custom contents.
    Please let us know if this works out for you.