'',
'pagelink' => esc_html__( '%', 'bingopress' ),
)
);
?>
featured){ ?>
post_status!='publish'): ?> post_title ) ?>
post_modified)) ) ?>
post_type=='docs') ? '/docs' : '/blog'; ?>
post_type) ) ?>
post_type=='docs'){
$ancestors = get_post_ancestors(get_the_ID());
$ancestors = array_reverse($ancestors);
/** Get Title */
$data = isset($ancestors[0]) ? get_post($ancestors[0]) : $post;
$bingopress_title = (get_field('sidebar_title', $data->ID)) ?
get_field('sidebar_title', $data->ID) : $data->post_name;
$bingopress_title = preg_replace('/[^\p{L}\p{N}\s]/u', ' ', $bingopress_title);
$categories = [
['url' => get_permalink($data->ID), 'name' => ucwords($bingopress_title)]
];
} else {
$data = get_the_category();
foreach($data as $value){
$tmp = [];
$tmp['url'] = get_term_link($value->term_id);
$tmp['name'] = $value->name;
$categories[] = $tmp;
}
}
?>
post_author);
$user = isset($user->data) ? $user->data : $user;
$user->link = get_author_posts_url($post->post_author);
$user->label = sprintf("%s", ucwords($user->display_name));
?>
label) ?>