Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
Saiyan
tagDiv Member

Hello?

Saiyan
tagDiv Member

Is there any customization to archive this?

Saiyan
tagDiv Member

🙂

Saiyan
tagDiv Member

I’ve Done That hehe.. 😉 using this code
//contributor
global $post;
if ( user_can( $post->post_author, 'administrator' ) ) {
echo 'Administrator';
} elseif ( user_can( $post->post_author, 'editor' ) ) {
echo 'Editor';
} elseif ( user_can( $post->post_author, 'author' ) ) {
echo 'Author';
} elseif ( user_can( $post->post_author, 'contributor' ) ) {
echo 'Contributor';
} elseif ( user_can( $post->post_author, 'subscriber' ) ) {
echo 'Subscriber';
} else {
echo 'Guest';
}

and some extra css and the result is here > null

Saiyan
tagDiv Member

Hi,

contributor-meta-info is Not Showing anything what is the exact code for displaying “contributor”

Saiyan
tagDiv Member

That’s because you are using “WP Rocket” switch to “wp super cache” mobile theme is Not Comfortable with other caching plugin except “wp super cache”

Saiyan
tagDiv Member

I’m glad I was able to help. 🙂

Saiyan
tagDiv Member

Hi,

Add this code into function.php

add_action('init', function() {

$endpoints = array(
'#https?://www\.facebook\.com/video.php.*#i' => 'https://www.facebook.com/plugins/video/oembed.json/',
'#https?://www\.facebook\.com/.*/videos/.*#i' => 'https://www.facebook.com/plugins/video/oembed.json/',
'#https?://www\.facebook\.com/.*/posts/.*#i' => 'https://www.facebook.com/plugins/post/oembed.json/',
'#https?://www\.facebook\.com/.*/activity/.*#i' => 'https://www.facebook.com/plugins/post/oembed.json/',
'#https?://www\.facebook\.com/photo(s/|.php).*#i' => 'https://www.facebook.com/plugins/post/oembed.json/',
'#https?://www\.facebook\.com/permalink.php.*#i' => 'https://www.facebook.com/plugins/post/oembed.json/',
'#https?://www\.facebook\.com/media/.*#i' => 'https://www.facebook.com/plugins/post/oembed.json/',
'#https?://www\.facebook\.com/questions/.*#i' => 'https://www.facebook.com/plugins/post/oembed.json/',
'#https?://www\.facebook\.com/notes/.*#i' => 'https://www.facebook.com/plugins/post/oembed.json/'
);

foreach($endpoints as $pattern => $endpoint) {
wp_oembed_add_provider( $pattern, $endpoint, true );
}
});

for this

https://en-support.files.wordpress.com/2013/09/facebook-embeds.gif

  • This reply was modified 10 years by Saiyan.
  • This reply was modified 10 years by Saiyan.
  • This reply was modified 10 years by Saiyan.
Saiyan
tagDiv Member

Sorry I can’t Give Website name right now. Please tell me in other ways.

Saiyan
tagDiv Member

i’ve done this using “loop-single.php” and it’s working fine in desktop using this css and code

loop-single.php edit code :

<div class=”td-module-meta-info”>
<?php echo get_avatar(get_the_author_meta(’email’, $author_id), ’45’) . $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_date(false);?>
<?php echo $td_mod_single->get_comments();?>
<?php echo $td_mod_single->get_views();?>
</div>

edit css :

” .avatar {
border-radius: 999px;
}

But when i add the same code in “/mobile/single.php” then

null

Please tell me css for mobile theme.

Saiyan
tagDiv Member

How to do the same in Newspaper 7? anyone can tell me?

Viewing 11 posts - 1 through 11 (of 11 total)