Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block suiteplugins

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
suiteplugins / posts-single.php
Created Dec 26, 2018
Changing Ultimate Member Posts Template
View posts-single.php
<div class="um-item">
<div class="um-item-link">
<a href="<?php echo get_permalink( $post ) ?>"><?php echo $post->post_title; ?></a>
<?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">
suiteplugins / single-post.php
Last active Dec 26, 2018
Customize Ultimate Member Template Tutorial
View single-post.php
<?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 );
suiteplugins / gist:8778af0bc9b9b4712283
Last active Nov 11, 2015
Setting custom types in UM Relationships
View gist:8778af0bc9b9b4712283
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;
You can’t perform that action at this time.