in pratica ho la necessità di riscrivere lo slug dei post, in modo da passare un flag che mi identifica un’impaginato differente per un determinato post.
faccio un esempio per chiarire meglio il problema.
ho questo post: blog.com/categoria/post-bla-bla.html
devo fare in modo che richiamando questo altro url: blog.com/categoria/post-bla-bla/scheda-tecnica.html, mi venga visualizzato un articolo fittizio, in sostanza il wordpress deve pensare come se stesse richiamando lo stesso post ma con un url differente, poi nel tema io andrò a visualizzare un contenuto differente preso da un meta value collegato allo stesso pst PADRE.
il problema è che con flushRules non so come cmportarmi, avevo lavorato con questo hook ma per fare tutt’altra cosa, in quel caso avevo un prefisso nello slug e quindi non avevo problemi, in questo caso invece mi serve un suffisso che è “scheda-tecnica.html” sempre uguale per tutti i post.