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
<div class="um-item"> | |
<div class="um-item-link"> | |
<a href="<?php echo get_permalink( $post ) ?>"><?php echo $post->post_title; ?></a> | |
</div> | |
<?php if ( has_post_thumbnail( $post->ID ) ) { | |
$image_id = get_post_thumbnail_id( $post->ID ); | |
$image_url = wp_get_attachment_image_src( $image_id, 'full', true ); ?> | |
<div class="um-item-img"> |
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 while ($ultimatemember->shortcodes->loop->have_posts()) { $ultimatemember->shortcodes->loop->the_post(); $post_id = get_the_ID(); $post = get_post($post_id); ?> | |
<div class="um-item"> | |
<div class="um-item-link"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div> | |
<?php if ( has_post_thumbnail( $post_id ) ) { | |
$image_id = get_post_thumbnail_id( $post_id ); | |
$image_url = wp_get_attachment_image_src( $image_id, 'full', true ); | |
?> | |
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
add_filter('um_get_relation_types', 'um_custom_relationship_types', 12, 1); | |
function um_custom_relationship_types($types){ | |
$types = array( | |
'boss' => __('Boss','um-relationships'), | |
'former-boss' => __('Former Boss','um-relationships'), | |
'mentor' => __('Former Boss','um-relationships'), | |
'assistant' => __('Assistant','um-relationships') | |
); | |
return $types; |