Wsparcie » Motywy » post_tag dla custom post type

Viewing 1 replies (of 1 total)
  • Thread Starter undraex

    (@undraex)

    to rozwiązuje sprawę jakby ktoś szukał”

    function any_ptype_on_tag($request) {
    	if ( isset($request['tag']) )
    		$request['post_type'] = 'any';
    
    	return $request;
    }
    add_filter('request', 'any_ptype_on_tag');
Viewing 1 replies (of 1 total)
  • Temat ‘post_tag dla custom post type’ jest zamknięty na nowe odpowiedzi.