Author name is disappeared

Posted in: Newspaper
Post count: 58

Hi, dear friends!

Everything is OK, and author name is shown on the blocks.

pic1

But when press Next button to paginate it’s disappeared.

pic2

Same thing when press Back button.

pic3

http://pharmanext.ru

I use custom code to hide user name in:
includes/wp_booster/td_module_single_base.php

change string

$buffy .= ‘post->post_author) . ‘”>’ . get_the_author_meta(‘display_name’, $this->post->post_author) . ‘‘ ;

to

$buffy .= ‘‘ . get_the_author_meta(‘display_name’, $this->post->post_author) . ‘‘ ;

and change following three lines

"' . get_author_posts_url($author_id) . '"

to

http://pharmanext.ru/”



And change code in <em>includes/wp_booster/td_module.php</em> 

$buffy .= '<a>post->post_author) . '">' . get_the_author_meta('display_name', $this->post->post_author) . '</a>' ;

to

$buffy .= ‘‘ . get_the_author_meta(‘display_name’, $author_id) . ‘‘ ;`

  • This topic was modified 9 years by mrx.
  • This topic was modified 9 years by mrx.
Post count: 6535

HI

By default the theme displays author name on module 8 which is used in block 9: http://screencast.com/t/AvhzGCicA Try to revert all changes made in theme’s core files, or upload a fresh copy of the theme in WordPress, clear all caches then test the site again.

Let us know how it goes.
Thanks!

Post count: 58

It’s a pity, but the things are the same.

I use following changes. Maybe I should use others to hide link to author’s name and show link to main site?

$buffy .= 'post->post_author) . '">' . get_the_author_meta('display_name', $this->post->post_author) . '' ;

to

$buffy .= '' . get_the_author_meta('display_name', $this->post->post_author) . '' ;

"' . get_author_posts_url($author_id) . '"

to

"http://pharmanext.ru/"

$buffy .= 'post->post_author) . '">' . get_the_author_meta('display_name', $this->post->post_author) . '' ;

to

$buffy .= '' . get_the_author_meta('display_name', $author_id) . '' ;

Post count: 58

Oh, parser!

See here

Post count: 6535

HI

I am, not really sure what you’re trying to so so please provide more specific details about what you’re trying to achieve and maybe we can help.
Thanks!

Post count: 58

OK, every post is signed by one-and-only author. When mouse points to name of the author it shows his login and link to his posts. It would be great don’t show those parameters. I’d like to show the link to the site. And above mentioned code does this task. But when I paginate into the blocks the name of author is disappeared.

You can see at the site http://pharmanext.ru/

Post count: 22421

Hello,

Did this issue occur before you modified the theme files or it is a result of your coding modification? if it is, you can leave the theme code intact and if you simply want to redirect the author link from modules and blocks you can add it here:
http://screencast.com/t/WVDYZagmhO

Thank you!

Post count: 58

Hello, Bogdan,

I messed up with the code. Sorry.
Just now everything is OK. Thanks a lot.

In addition please tell me how to make the same thing into the posts themselves?

Post count: 6535

HI

To achieve a similar result on single posts you need to edit td_module_single_base.php file here: http://screencast.com/t/fdrFNwYOm

Thanks!

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.