Viewing 5 replies - 1 through 5 (of 5 total)
  • CPDesign

    (@cpdesigns)

    Try adding this to your theme’s functions.php file

    function any_ptype_on_cat($request) {
    	if ( isset($request['category_name']) )
    		$request['post_type'] = 'any';
    
    	return $request;
    }
    add_filter('request', 'any_ptype_on_cat');
    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    did CPDesigns’ idea help at all?

    Thread Starter villarroel

    (@villarroel)

    Really sorry for not replying sooner, been a bit crazy here.

    In the end I decided not to use the custom post types and go back to the normal posts, seems to work a lot smoother.

    Thanks

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Glad you found a solution regardless of the method 🙂

    I was having the same problem. I used the method mentioned above and it worked perfectly! Thank you, I had been searching for hours!!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘"No entries found" in post categories’ is closed to new replies.