Sequential number, order number
-
Hello All,
I display on a site with WP and Pods the same data I have in a Access database. In Access I have a list of published rececettes (recipes) extracted with the following SQL query :
SELECT (SELECT COUNT(Nom) FROM TabRecettesPréparation AS TabRecettesPréparation_Alias WHERE (((TabRecettesPréparation_Alias.Publiée)=[Formulaires]![ForPréparationRecettesPubliéesOuNon]![Publiée])) and TabRecettesPréparation_Alias.Nom < TabRecettesPréparation.Nom)+1 AS Ordre, TabRecettesPréparation.N°, TabRecettesPréparation.Nom, TabRecettesPréparation.Sous_titre, TabRecettesPréparation.Région, TabRecettesPréparation.Publiée FROM TabRecettesPréparation WHERE (((TabRecettesPréparation.Publiée)=[Formulaires]![ForPréparationRecettesPubliéesOuNon]![Publiée])) ORDER BY TabRecettesPréparation.Nom, TabRecettesPréparation.Sous_titre;
The output data have a dynamically generated sequential number called Ordre.
With Pods I have build a page that list all the Recette on the site. I do that with
<bold><hr></bold> {@post_title} - {@sous_titre} <br>
How can I add a sequential number as I can do in Access ?
Thanks
Alphonse PHILIPPE
- The topic ‘Sequential number, order number’ is closed to new replies.