Hi there!
Assuming you’re using the widget, the simplest way would be by using WPP’s custom HTML feature to include a new link. Here’s an example:
- Go to Widgets > WordPress Popular Posts and enable the Use custom HTML Markup checkbox under HTML Markup settings.
- Change
<li>{thumb} {title} {stats}</li>
into <li>{thumb} {title} {excerpt} <a href="{url}">Read more</a> {stats}</li>
.
- Hit the Save button.
Give it a go and let me know how it goes, alright?
That worked perfectly, thanks a lot!
Could you show the syntax for an inline (non shortcode) method? I must be getting the ” ‘ wrong, because once I add the page throws an error.
I’d like the final <h6>read on</h6>
in the below to match the formatting used in the most recent post also shown on the page, namely <h6 class="margTzero"><a href="<?php the_permalink() ?>">read on <i class="fa fa-chevron-circle-right"></i></a></h6>
Here is what I have so far for the wpp entry:
<?php wpp_get_mostpopular( 'limit=1&offset=1&post_type="post"&excerpt_format=1&excerpt_length=500&post_html="<li><h2>{title}</h2> <p>{summary}</p> <h6>read on</h6> </li>"' ); ?>
ALSO, my adding “offset=1” doesn’t do anything. How do I have wpp skip the most recent post (using inline code, not the widget, because on a custom landing page).
Thanks!
In-progress page is at http://www.pixel-relish.com/wp2/
Never mind on the url link; found that. Still do need help with the skip newest post aspect, though. Thanks.
Hi @pixelrelish!
WPP does’t have an offset
parameter which is why it’s being ignored 😛 There are plans to include it on a future release, though.