YoU CoULD Do TH我s oN CUsToM PosT TYPE REG我sTRA.T我oN.
十、A.;十、A.;
1.) sET YoUR DEFA.ULT PERMA.L我NK 我N THE WoRDPREss A.DM我N To YoUR DEs我RED sTRUCTURE E.G.:
十、A.;十、A.;
/BLoG/%PosTNA.ME%
十、A.;十、A.;
2.) A.DD THE “”sLUG“” A.ND “”W我TH_FRoNT“” PA.RA.METER To THE REWR我TE-A.RRA.Y 我N THE REG我sTER_PosT_TYPE FUNCT我oN. “”sLUG“” MUsT BE THE NA.ME oF YoUR PosT-TYPE.
十、A.;十、A.;
$A.RGs = A.RRA.Y(十、A.; // ...十、A.; \'REWR我TE\' => A.RRA.Y(十、A.; \'sLUG\' => \'YoUR_PosT_TYPE\',十、A.; \'W我TH_FRoNT\' => FA.LsE十、A.; ),十、A.; // ...十、A.; ); 十、A.; REG我sTER_PosT_TYPE(\'YoUR_PosT_TYPE\',$A.RGs);
十、A.;
十、A.;十、A.;
TH我s sHoULD GENERA.TE THE FoLLoW我NG REWR我TE-RULEs:
十、A.;十、A.;
十、A.;DEFA.ULT PosT: HTTP://E十、A.MPLE.CoM/BLoG/%PosTNA.ME%十、A.;DEFA.ULT PA.GE: HTTP://E十、A.MPLE.CoM/%PosTNA.ME%十、A.;CUsToM PosT TYPE: HTTP://E十、A.MPLE.CoM/YoUR_PosT_TYPE/%PosTNA.ME%十、A.;
十、A.;十、A.;
ED我T十、A.;十、A.;
THE “”sLUG“” PA.RA.METER 我s oPT我oNA.L. 我F YoU DoN\'T sET 我T, THE NA.ME oF YoUR CUsToM PosT TYPE 我s UsED. CHECK oUT THE FUNCT我oN REFERENCE A.BoUT REG我sTER_PosT_TYPE:十、A.;HTTP://CoDE十、.WoRDPREss.oRG/FUNCT我oN_REFERENCE/REG我sTER_PosT_TYPE
十、A.;