Services Directory A-Z
' . esc_html($letter) . '
New solutions for a sustainable future
With our breadth and diverse expertise, we help customers and partners adapt to and meet challenges, take a holistic approach to solve complex issues and strengthen their competitiveness. Explore some of the fields we work with โ A to Z.
array(‘page’, ‘services’), // Adjust post type if using a custom post type slug
‘posts_per_page’ => -1,
‘orderby’ => ‘title’,
‘order’ => ‘ASC’,
‘post_parent’ => $parent_page ? $parent_page->ID : 0
);
// Fallback query if no children explicitly set under parent page ID, fetch all pages containing ‘services’ or general items
$services_query = new WP_Query($services_args);
if (!$services_query->have_posts()) {
// Broaden query to pull all items if specific parent hierarchy isn’t indexed by ID
$services_query = new WP_Query(array(
‘post_type’ => ‘page’,
‘posts_per_page’ => -1,
‘orderby’ => ‘title’,
‘order’ => ‘ASC’
));
}
$grouped_services = array();
if ($services_query->have_posts()) {
while ($services_query->have_posts()) {
$services_query->the_post();
$title = get_the_title();
$permalink = get_permalink();
// Get the first letter of the service title for A-Z grouping
$first_letter = strtoupper(mb_substr(trim($title), 0, 1));
if (preg_match(‘/^[A-Z]$/’, $first_letter)) {
$grouped_services[$first_letter][] = array(
‘title’ => $title,
‘permalink’ => $permalink
);
}
}
wp_reset_postdata();
}
// Sort letters alphabetically
ksort($grouped_services);
if (!empty($grouped_services)) {
$counter = 0;
$total_letters = count($grouped_services);
foreach ($grouped_services as $letter => $items) {
echo ‘
‘;
echo ‘‘;
echo ‘
‘;
}
} else {
// Fallback static display if template loop is restricted in a pure HTML widget block
echo ‘- ‘;
foreach ($items as $service) {
echo ‘
- ‘ . esc_html($service[‘title’]) . ‘ ‘; } echo ‘
No services found dynamically. Please ensure your service pages are published under the main services path.
‘;
}
// Note: WordPress Custom HTML blocks do not natively execute PHP code unless using a PHP execution plugin (like “PHP Code Snippets” or a custom page template).
// If PHP doesn’t execute in your current block, you can place this logic inside your child theme’s `page-services-directory-a-z.php` template file.
?>
Global Alliance Register
' . esc_html($letter) . '
Engage Global Alliance Register for independent expertise, technical assurance and practical support tailored to your Services Directory A-Z needs.
Discuss Your Services Directory A-Z Needs