Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Alex Mansfield

    (@alexmansfield)

    I’m not sure I understand. Using this plugin, every post will be by the same author. You want to display the same author’s name after every post title?

    Thread Starter altairm

    (@altairm)

    Hi!
    Yes you’re right.

    I got this view: https://wonki.me/?page_id=2156
    and there is none information about author unless I write it manually.

    I’m using this shortcode: [latestbyauthor?author=”stevie” show=”3″]

    If possible, I want to display author’s name together their posts, so the visitors will know who wrote the most recent posts displayed this page.

    Plugin Author Alex Mansfield

    (@alexmansfield)

    While it would be possible to modify the plugin to display the author’s name, it would be much simpler to just write the author’s name before the shortcode.

    <h3>Latest posts from Stevie</h3>
    [latestbyauthor author="stevie" show="3"]
    Thread Starter altairm

    (@altairm)

    I know it and I thought on it, but I need a few more features.
    Can we talk privately about the possibility to improve this plugin?
    Just to tell about some news we need…

    In the future I want the visitors follow the authors and have a automated and customized page showing the most recents posts of his favorite authors. Can you understand me?

    Plugin Author Alex Mansfield

    (@alexmansfield)

    Feel free to use the contact form on my site to get in touch with me and we can discuss the features you need privately.

    https://alexmansfield.com/contact

    Thread Starter altairm

    (@altairm)

    Hi Alex! Sorry bother you but it seems the message I wrote on contact form wasn’t sent.
    Did you receive it?

    Plugin Author Alex Mansfield

    (@alexmansfield)

    Yes, I got it. I wasn’t at my computer much this afternoon though. I’ll write you back in a few minutes.

    Thread Starter altairm

    (@altairm)

    Hi Alex, thank you for your help.
    I will wait your answer.

    Best regards

    Thread Starter altairm

    (@altairm)

    Hi Alex! How are you?
    We talked about improve Latest post by author plugin.

    Are you still interested to continue? Do you will send us a estimate cost to make the features I sent you?

    Regards

    Plugin Author Alex Mansfield

    (@alexmansfield)

    Sorry about that. I tried writing you back yesterday but the message didn’t go through. Go ahead and check your email, as I think I got it right this time.

    hi, i need to display the post’s author before the post too.

    can you help me?
    thank you
    Mauro

    Plugin Author Alex Mansfield

    (@alexmansfield)

    Hi nio975!

    As I mentioned to altairm, if you’re not comfortable modifying the plugin code, your best bet would be to simply add the authors name before the shortcode, like this:

    <h3>Latest posts from Stevie</h3>
    [latestbyauthor author="stevie" show="3"]

    If that doesn’t work for you, please explain what you’re trying to do and I’ll see what I can do to find a solution for you.

    Hi Alex, thank you for your answer, i solved my problem using html static code. now i have another problem, i use you schortcode inside the widget, when in the post i have another shortcode i view the code in the widget.
    is it possible to solve the problem or clean other code in the widget?
    heare the page, you can find the problem in the little sidebar, the post Lorem Ipsum is simply dummy.
    https://verdi.it/verdi-blog/

    thank you for you ansewer

    Mauro

    i forgot the code
    [dropcap text_color=”#C27537″ font_size=”” font_weight=””]L[/dropcap]

    thank you
    mauro

    Plugin Author Alex Mansfield

    (@alexmansfield)

    By default, shortcodes aren’t functional in excerpts. The Latest Posts by Author plugin uses excerpts to display that little section of post content you’re referring to. I tried the following code and it seemed to enable shortcodes to be functional within excerpts on a site-wide basis. Just add it to your functions.php file:

    remove_filter('get_the_excerpt', 'wp_trim_excerpt');
    add_filter('get_the_excerpt', 'custom_trim_excerpt');
    
    function custom_trim_excerpt($text = '') {
    	$raw_excerpt = $text;
    	if ( '' == $text ) {
    		$text = get_the_content('');
    		$text = apply_filters('the_content', $text);
    		$text = str_replace(']]>', ']]>', $text);
    		$excerpt_length = apply_filters('excerpt_length', 55);
    		$excerpt_more = apply_filters('excerpt_more', ' ' . '[...]');
    	}
    
    	return apply_filters('wp_trim_excerpt', $text, $raw_excerpt);
    }
Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Display the author name’ is closed to new replies.