diff --git a/lga-page.php b/lga-page.php index 786a3ee..dcceaa0 100644 --- a/lga-page.php +++ b/lga-page.php @@ -41,7 +41,7 @@ foreach ($lga_files as $config_file) { print('' . "\n"); print('
  • '); - print('' . $config['councilName'] . "
  • \n"); + print('' . $config['divisionName'] . "\n"); print('' . "\n"); } diff --git a/make-lga-page.sh b/make-lga-page.sh index d68130a..c7295da 100755 --- a/make-lga-page.sh +++ b/make-lga-page.sh @@ -4,7 +4,7 @@ # The folder containing data for each council. # Includes the list of candidates and any media. -DATA_PATH="../spl-data" +DATA_PATH="../spl-data/federal_2025" # Iterate over folders in data path candidates_files=() @@ -22,4 +22,4 @@ done content=$(php lga-page.php --candidates-files "${candidates_files[*]}" \ --lga-files "${lga_files[*]}") -echo "$content" | wp post update 465 - +echo "$content" | wp post update 245813 -