This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$id = get_post($post->ID); | |
$tax = get_the_terms($id, 'position'); | |
$args = array( | |
'post_type' => 'people', | |
'tax_query' => array( | |
array( | |
'taxonomy' => 'position', | |
'field' => 'slug', | |
'terms' => $tax[0]->slug, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<php | |
/* | |
* Custom queries for Elementor | |
* by ellegaard ID | |
*/ | |
/* Get direct children of current page | |
* | |
* for query ID use 'pages_direct_child_filter' | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function eid_cpt_employee() { | |
register_post_type( 'eid_team_member', | |
array( | |
'labels' => array( | |
'name' => __( 'Medarbejdere', 'eid_function' ), | |
'singular_name => __( 'Medarbejder', 'eid_function' ), | |
), | |
'description' => __( 'Virksomhedens medarbejdere', 'eid_function' ), | |
'public' => true, | |
'has_archive' => true, |
OlderNewer