• Resolved quangtuyen1601

    (@quangtuyen1601)


    [wpp range=’last7days’ limit=10 stats_views=1 order_by=’views’ stats_taxonomy=1 title_length=35]

    I want to remove the fixed text when using parameter, but it doesn’t have class to use css, can you support me?
    I can find in the file and delete directly, but worry about the issue of updating later

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hey @quangtuyen1601,

    To customize the HTML output of your popular posts list, either to add or remove something, you can use either the post_html parameter in conjunction with the available Custom Tags to get the desired output.

    For example:

    [wpp post_html='<li>{thumb} {title} <div class="wpp-stats">Viewed {views} times, published on {date}</div><div class="wpp-taxonomy-wrapper">{taxonomy}</div></li>']
    Thread Starter quangtuyen1601

    (@quangtuyen1601)

    it seems you don’t understand what I mean. when I use
    [wpp range=’last7days’ limit=10 stats_views=1 order_by=’views’ stats_taxonomy=1 title_length=35]
    then the default taxonomy display shows the word “under” in front.
    I want to remove/hide the word “under”, only display the called taxonomy.
    In addition, in the output file I also see some fixed words, there is no class for css to hide them like in the picture.
    I can remove it in the output file, but I’m afraid of updating later.

    Plugin Author Hector Cabrera

    (@hcabrera)

    I did understand. Perhaps my previous comment could have been clearer.

    What I meant to say is that the only way to change anything from the stock HTML output is to modify it via post_html or using the filter hooks provided by the plugin, see How can I use my own HTML markup with WordPress Popular Posts for more details.

    I can remove it in the output file, but I’m afraid of updating later.

    I don’t recommend this for exactly that reason, changing plugin files is generally not a good idea since future updates will undo your changes. Follow the recommended way as described above and you should be good to go.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.