• Resolved fredel

    (@fredel)


    Hey all,

    i want to create a table but i connot find the right shortcode. i tried

    [wpp range=weekly stats_comments=0 thumbnail_width=100 thumbnail_height=100 thumbnail_selection=usergenerated do_pattern=1 pattern_form={image} stats_views=0 wpp_start=”<table>” post_html=”<tr>{thumb} {text_title}</tr>” wpp_end=”</table>”]

    But it doesnt word out. Or has anyone an idea, how to get all Popular Posts under each other like in the widget?

    Thanks so much!

    https://www.ads-software.com/plugins/wordpress-popular-posts/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter fredel

    (@fredel)

    any ideas? thanks

    Plugin Author Hector Cabrera

    (@hcabrera)

    Holy crap, you have some very old parameters in there! do_pattern and thumbnail_selection have been deprecated for a very long time now! o.O

    Anyways, you’re missing the TD tag. It should be like this:

    [wpp range=weekly stats_comments=0 stats_views=0 thumbnail_width=100 thumbnail_height=100 wpp_start="<table>" post_html="<tr><td>{thumb} {text_title}</td></tr>" wpp_end="</table>"]

    Thread Starter fredel

    (@fredel)

    got it!

    thx so much

    Plugin Author Hector Cabrera

    (@hcabrera)

    That’s odd. Works for me over here. Could you please post your site’s URL so I can see what’s going on?

    Thread Starter fredel

    (@fredel)

    sorry, my fault. for the moment its working ??
    thanks again!

    Plugin Author Hector Cabrera

    (@hcabrera)

    Glad I could help!

    Enjoy the plugin!

    Thread Starter fredel

    (@fredel)

    sorry, me again, is there a way to change table, e.g. the width?

    [wpp range=weekly stats_comments=0 excerpt_length=100 post_type=post stats_views=0 limit=50 thumbnail_width=50 thumbnail_height=50 wpp_start=”<table width=”80%”>” post_html=”<tr><td>{thumb} {title}{summary} </td></tr>” wpp_end=”</table>”]

    but doesnt work out.

    sorry & thanks

    Thread Starter fredel

    (@fredel)

    and / or the fomat of the title (e.g. bigger font”), tried

    wpp_start=”<table>” post_html=”<tr><td>{thumb} <font size=”3em”> {title} </font>

    {summary} </td></tr>” wpp_end=”</table>”]

    thanks you are helping a neewbie ??

    Plugin Author Hector Cabrera

    (@hcabrera)

    The problem is here: wpp_start="<table width="80%">". Use single quotes when adding attributes like width, cellpadding, etc. like this: wpp_start="<table width='80%'>".

    Thread Starter fredel

    (@fredel)

    hey again, sorry for another question! is it possible to change the layout of <tr> or <td> within short code, i want to disable all borders…

    https://www.bergtour-online.de/top-touren/beliebteste-wanderungen/

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hi there!

    To remove borders, you can use the border attribute:

    wpp_start="<table width='80%' border=0>"

    Alternatively, you can also add the following to your theme’s stylesheet (style.css):

    table {
        border:none;
    }
    Thread Starter fredel

    (@fredel)

    thanks again hector, got it via CSS.

    One last Question: A numbering of the articles isnt possible, i suppose?

    and / or: My theme has such a numbering integreated. you you see a fix within shortcode to display it like that or in that direction?

    https://www.bergtour-online.de/top-touren/beliebteste-wanderungen/

    (Site End other format)

    thanks so much again!

    Plugin Author Hector Cabrera

    (@hcabrera)

    The easiest way to have the list numbered is by using the OL tag:

    [wpp range=weekly stats_comments=0 excerpt_length=100 post_type=post stats_views=0 limit=50 thumbnail_width=50 thumbnail_height=50 wpp_start="<ol>" post_html="<li>{thumb} <span style='font-weight:600; font-size:1.1em'>{title}</span> {summary}</li>" wpp_end="</ol>"]

    … but then, you wouldn’t be able to use a table ??

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Shortcode | Help needed’ is closed to new replies.