Update LGA page to generate Federal Divisions page.
This commit is contained in:
@@ -41,7 +41,7 @@ foreach ($lga_files as $config_file) {
|
|||||||
print('<!-- wp:list-item {"style":{"typography":{"fontStyle":"normal","fontWeight":"');
|
print('<!-- wp:list-item {"style":{"typography":{"fontStyle":"normal","fontWeight":"');
|
||||||
print($font_weight . '"}}} -->' . "\n");
|
print($font_weight . '"}}} -->' . "\n");
|
||||||
print('<li style="font-style:normal;font-weight:' . $font_weight . '">');
|
print('<li style="font-style:normal;font-weight:' . $font_weight . '">');
|
||||||
print('<a href="' . $config['slug'] . '">' . $config['councilName'] . "</a></li>\n");
|
print('<a href="' . $config['slug'] . '">' . $config['divisionName'] . "</a></li>\n");
|
||||||
print('<!-- /wp:list-item -->' . "\n");
|
print('<!-- /wp:list-item -->' . "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
# The folder containing data for each council.
|
# The folder containing data for each council.
|
||||||
# Includes the list of candidates and any media.
|
# Includes the list of candidates and any media.
|
||||||
DATA_PATH="../spl-data"
|
DATA_PATH="../spl-data/federal_2025"
|
||||||
|
|
||||||
# Iterate over folders in data path
|
# Iterate over folders in data path
|
||||||
candidates_files=()
|
candidates_files=()
|
||||||
@@ -22,4 +22,4 @@ done
|
|||||||
content=$(php lga-page.php --candidates-files "${candidates_files[*]}" \
|
content=$(php lga-page.php --candidates-files "${candidates_files[*]}" \
|
||||||
--lga-files "${lga_files[*]}")
|
--lga-files "${lga_files[*]}")
|
||||||
|
|
||||||
echo "$content" | wp post update 465 -
|
echo "$content" | wp post update 245813 -
|
||||||
|
|||||||
Reference in New Issue
Block a user