• Resolved ~MR

    (@mediblereview)


    I currently am using the WPP widget to show some posts. I am trying to replicate the exact output format of the widget using shortcode, as I want to remove the editor the page was built with. I have come pretty close, but there’s one piece I cannot seem to figure.
    If you look at the widget output on http://mediblereview.com (trending posts on top) and compare it to the one I created with shortcode on http://mediblereview.com/testslider/, you will notice that the posts created with shortcode are indented slightly.
    I am trying to get the thumbnail and contents to shift left and be aligned with the header text but I cannot seem to make this happen.

    Here is the shortcode I am using:

    [wpp header_start='<h3 class="title">' header='Today's Trending Posts' header_end='</h3>' post_html='<li>{thumb}<br>{title}<br><br><span class="wpp-excerpt">{summary}</span><br><strong>{views} views</strong><br><br></li>' cat='4,5,6,8,87' range='last7days' limit=10 excerpt_by_words=1 excerpt_length=40 thumbnail_width=75 thumbnail_height=75]

    Any Suggestions on how to accomplish this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ~MR

    (@mediblereview)

    Nevermind, I have figured this out. Thanks anyways!

    Thread Starter ~MR

    (@mediblereview)

    .

    Thread Starter ~MR

    (@mediblereview)

    Sorry, i was wrong it still is indented. Any ideas?

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hey @mediblereview,

    The HTML output from the widget is slightly different from the one you’re passing to the shortcode.

    Try this:

    [wpp header_start='<h3 class="title">' header='Today's Trending Posts' header_end='</h3>' post_html='<li>{thumb} <br>{title}<p> <span class="wpp-excerpt">{excerpt}</span><br><strong>{views} views</strong></p></li><p></p>' cat='4,5,6,8,87' range='last7days' limit=10 excerpt_by_words=1 excerpt_length=40 thumbnail_width=75 thumbnail_height=75]

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

The topic ‘reproducing the widget format with shortcode’ is closed to new replies.