• Resolved cubicovich

    (@cubicovich)


    I can not figure out how to use shortcode to display the number of comments or views, is there such an opportunity? show a couple of examples.

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

    (@hcabrera)

    Hi @cubicovich,

    It’s very simple. Here’s an example:

    [wpp range="last7days" stats_views=1 stats_comments=1]

    For more examples (and documentation) please go to Settings > WordPress Popular Posts > Parameters.

    Thread Starter cubicovich

    (@cubicovich)

    yes I did, but I always write “Sorry. No data so far.”

    I have links to other articles on the page, I want to place under them a number of comments and views, as in the Widget

    Plugin Author Hector Cabrera

    (@hcabrera)

    Please share your site’s URL and I’ll have a look.

    Thread Starter cubicovich

    (@cubicovich)

    Thread Starter cubicovich

    (@cubicovich)

    https jowm ru/ewi/

    I use other shortcode to output the comment amount, and to display the number of views, plug-ins, I want to use only your plug-in instead of all this

    • This reply was modified 6 years, 10 months ago by cubicovich.
    • This reply was modified 6 years, 10 months ago by cubicovich.
    • This reply was modified 6 years, 10 months ago by cubicovich.
    Plugin Author Hector Cabrera

    (@hcabrera)

    This is what I’m seeing right now:

    WPP as seen on jowm.ru/ewi

    Thread Starter cubicovich

    (@cubicovich)

    this is your widget, and I want to make a separate page for articles

    Thread Starter cubicovich

    (@cubicovich)

    Image and video hosting by TinyPic

    • This reply was modified 6 years, 10 months ago by cubicovich.
    Plugin Author Hector Cabrera

    (@hcabrera)

    Ah, in that case you have to figure out how to replace these with WPP’s shortcodes using the Elementor Page Builder. I can’t help you there as I’m not familiar with Elementor. You may want to get in touch with your theme developer and ask them about this (or hire someone to do this for you if you don’t know how to / don’t have the time for it).

    Thread Starter cubicovich

    (@cubicovich)

    under the button, the text is normal, there’s a shortcode in it, so if your shortcode looked like a normal editor

    how do I display views and comments for a single page?

    • This reply was modified 6 years, 10 months ago by cubicovich.
    Plugin Author Hector Cabrera

    (@hcabrera)

    Well, you can create a custom shortcode just for this.

    Get the comments count of the current post using the get_comments_number() function, the views count via wpp_get_views(), and then output that with your custom shortcode.

    Thread Starter cubicovich

    (@cubicovich)

    I understand, thanks for the patience, so in your plug-in there is no such function

    Plugin Author Hector Cabrera

    (@hcabrera)

    Don’t worry about it. And no, unfortunately there isn’t a shortcode that does what you need which is why I suggested creating one. It really isn’t difficult, check the link I shared in my previous comment for details.

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