## custom taxonomy – Filter with two id of the same value CPT UI(taxanomies)

Question

I have a special link with a filter, so I filter things with slugs through the link, for example

mydomain.com/filter/?technology=angular&category=software-development

and it shows the chosen jobs

Now, I want to show jobs with different id’s but with the same slug, like here:

mydomain.com/filter/?bullhorn_id=2979,2090

I tried this variation

https://itds.pl/filter/?bullhorn_id=2979&bullhorn_id=2903

and it’s not working
With one ID it works perfectly
Could please someone help me? I’m not good in PHP
here is part of a code that generates link

if(isset($_GET['bullhorn_id'])){$bullhorn = explode(',',$_GET['bullhorn_id']); if(count($bullhorn)>=0){
for($p=0;$p<count($bullhorn);$p++){
$filter[] = array( 'taxonomy' => 'bullhorn_id', 'field' => 'slug', 'terms' =>$bullhorn[$p] ); } } else{$filter[] = array( 'taxonomy' => 'bullhorn_id', 'field' => 'slug', 'terms' => \$_GET['bullhorn_id']  );
}
}

Oh and BTW it’s taxanomy

0
1 month 2022-08-23T09:12:25-05:00 0 Answers 0 views 0