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.
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.
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.