Skip to:
Content
Pages
Categories
Search
Top
Bottom

No posts are being displayed when inside of a thread


  • Jake Hall
    Participant

    @geekserve

    Hi all,

    I have slowly developed my own theme for bbPress + WordPress, and it has been a sharp learning curve trying to get my head around the code for WordPress. Anyway, I am having an issue where I can drill down into a topic, however, no posts are ever displayed. The only thing that is displayed on screen is the “Add new Reply” GUI.

    I am essentially wondering, why is this happening, and how can I fix it? I have tried to replicate the same problem on the default wordpress themes and they work fine, so – what have I managed to do with my theme that has broken everything?

    Any help would be appreciated,

Viewing 2 replies - 1 through 2 (of 2 total)

  • Jake Hall
    Participant

    @geekserve

    OK, removing the following from my functions file;

    function SearchFilter($query) {
    	if ($query->is_search) {
    	$query->set('post_type', 'post');
    	}
    		return $query;
    	}
    
    add_filter('pre_get_posts','SearchFilter');

    Seemed to fix the problem. No idea why that broke things, but I can finally start working on my forum!


    Robin W
    Moderator

    @robin-w

    ok, glad you’re fixed !

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