View Single Post
  #10  
Old June 17th, 2013, 09:33 AM
DohRayMi DohRayMi is offline
 
Join Date: Feb 2013
Posts: 167
Default

Hi again,
thank you.
So I take a new line for each merchant and put the 2 numbers on it like this?

function map_mid_to_cpt( $merchant_id ) {
$map = array(
8303 => 7903,
DF ID => POST ID,
DF ID => POST ID,
DF ID => POST ID,
DF ID => POST ID,
ETC ETC
);
return get_permalink( $map[$merchant_id] );
}

and put that in Function.php and then put the other piece of code in my view?

Will it matter that I have nearly 300 merchants?

Thanks,
Philip.