• Resolved Vanderbeam

    (@vanderbeam)


    Is there a plugin-native way to display the author without the hyperlink to the author’s archive when using the WPP shortcode parameters?

    For now I’ve simply altered line 367 in output.php, but I know this will get overridden come the next update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi there,

    Yeah, editing plugin files like that isn’t really a good idea.

    Instead you should leverage on WPP’s built-in HTML customization features to alter its output as you see fit.

    Thread Starter Vanderbeam

    (@vanderbeam)

    Yeah, it was for the sake of a quick fix due to a quick deadline. I’m trying to figure out something more permanent in the meantime I can implement after traffic dies down.

    I am using the HTML customization feature. My current snippet is:

    
    [wpp limit=6 range='all' stats_author=1 stats_date=1 thumbnail_width=300 thumbnail_height=150 post_html='<div class="pop-post-items">
    	<div class="image-wrap">
    		{thumb}
    	</div>
    	<h3 class="pp-post-title"><a href="{url}">{text_title}</a></h3>
    	<div class="pp-meta-wrap">
    		<span class="pp-date">{date}</span> <span class="pp-author">By {author}</span>
    	</div>
    </div>']
    

    But the issue is the {author} parameter. It’s the only one offered up regarding the author, and since this blog has multiple I can’t hard code a single name. So before creating a shortcode with custom arguments, I was wondering if there was a parameter native to the plugin that displayed the author name without a hyperlink that I was just overlooking.

    Plugin Author Hector Cabrera

    (@hcabrera)

    No, there isn’t one. Otherwise I would have suggested it above 😛 (Although I might add it on a future release, maybe on version 5.5).

    Personally if I were you I’d create a custom Content Tag (eg. {author_no_link}) and use that instead of the built-in {author} tag (check the example from the link I shared earlier, it explains in detail how to do this).

    If you have any further questions don’t hesitate to ask, alright?

    P.S.: by the way, won’t that shortcode break if you paste it as is on the editor? Not sure whether WordPress will like all of those line jumps you have there.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Unlink author?’ is closed to new replies.