• Resolved Julius E

    (@julius-e)


    Hi Hector, I’m still using a classic editor based theme so now that the widget is being deprecated I need to switch to shortcodes. I’ve tried replicating the widget settings but obviously I’m doing something wrong because I’m not getting the same results.

    Is there any chance you could help? I’ve taken screenshots of my current widget settings here https://snipboard.io/8OeF0P.jpg and here https://snipboard.io/1qIcMy.jpg

    Many thanks in advance!

    PS. I also have the following CSS for the existing widget styling. Do I keep that or need to apply it differently?

    .wpp-list {
    letter-spacing: -0.3px;
    font-family: Roboto Slab;
    font-size: 14px;
    background-color: #fafafa;
    }
    .wpp-list li {
    border-bottom-style: ridge;
    border-bottom-width: 1px;
    margin-right: 8px;
    margin-left: 8px;
    padding-top: 1px;
    }

    PPS. Do you have a date as to when you’re removing the widget option?

    • This topic was modified 1 year, 8 months ago by Julius E.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @julius-e,

    Alright, please give this a try:

    [wpp heading='Popular Posts' limit=6 range='last24hours' post_type='post' stats_views=0 thumbnail_width=75 thumbnail_height=50]

    I also have the following CSS for the existing widget styling. Do I keep that or need to apply it differently?

    You can keep that, the shortcode by default uses the same CSS classes as the widget.

    PPS. Do you have a date as to when you’re removing the widget option?

    No, I don’t have a date as of yet. I’m thinking it could be weeks or months, I’m trying to give people enough time so they can make whatever changes are needed before I fully remove the widget from the plugin (the shortcode, the wpp_get_mostpopular() function and the WordPress Popular Posts block will continue to work as usual).

    Thread Starter Julius E

    (@julius-e)

    It worked great Hector, thanks as always for your quick response and help.

    Hi Hector,

    Thanks for sharing the code. I did the same change here and it works just fine.

    What I want to help me out with is with a code I may use to change the “Classic view” to theme “Tiles”. More parameters I need to add are:

    Width: 320, Height: 160
    Time Range: 24 hours, 3 posts, Total views

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @dkesov,

    To replicate the Tiles theme with the shortcode use these parameters (didn’t include some of your parameters for brevity):

    [wpp thumbnail_width=320 thumbnail_height=160 stats_views=0 stats_category=1 wpp_start='<ul class="wpp-list wpp-tiles">' post_html='<li class="{current_class}">{thumb}<div class="wpp-post-data">{taxonomy} {title}</div></li>' wpp_end='</ul>']

    Since you may need it, here’s Tiles’ CSS rules. And for future reference: Parameters.

    Also, please consider opening your own thread next time (except when you’re having the exact same issue and/or query as the original poster, in that case it’s fine and you don’t need to open a new topic). That way we won’t spam OP with messages when they already got help with their query.

    Hi Hector,

    Thank you so much for your help!

    I was about to open new thread. I thought that my request is close enough to the one described here. I would also not bother you if I could use the block option to change the classic view.

    Using your code for Tiles theme does not give me the result I want. The article’s subject has to be over the picture, not under it.

    Here is a link to my website. In the sidebar right after the add is the Tile theme view how it has to be. After that is the result of the code you share to me.

    Please, suggest if I need to open new thread about this or not.

    Thank you!

    Plugin Author Hector Cabrera

    (@hcabrera)

    Yep, please open a new thread and we’ll continue there @dkesov. Thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Could use some help with wpp shortcodes’ is closed to new replies.