mirror of
https://github.com/ascribe/wp-theme
synced 2024-12-22 09:13:38 +01:00
commit
7559ae8f99
@ -718,16 +718,19 @@ class Subtemplate {
|
||||
'order' => 'ASC'
|
||||
);
|
||||
|
||||
$careers = get_posts($args);
|
||||
$careers = get_posts($args);
|
||||
$careerMarkup = '';
|
||||
|
||||
if (!empty($careers)) {
|
||||
foreach ($careers as $career) {
|
||||
$id = $career->ID;
|
||||
$name = $career->post_title;
|
||||
$url = get_permalink($id);
|
||||
$id = $career->ID;
|
||||
$name = $career->post_title;
|
||||
$url = get_permalink($id);
|
||||
|
||||
$careerMarkup .= "<li class='career'><a href='{$url}'>{$name}</a></li>";
|
||||
}
|
||||
} else {
|
||||
$careerMarkup .= get_sub_field('empty_text');
|
||||
}
|
||||
|
||||
$result = "<section class='subtemplate careers'>
|
||||
|
Loading…
Reference in New Issue
Block a user