WordPress.org

Support

Support » Plugins and Hacks » Download Monitor » [Resolved] [Plugin: WordPress Download Monitor] Unable to get top 10 list displaying in sidebar widget

[Resolved] [Plugin: WordPress Download Monitor] Unable to get top 10 list displaying in sidebar widget

  • I’m using the Exec-PHP plugin so I can insert php code into the sidebar widgets. I’ve been replacing the legacy tags throughout my blog, I was using the code <?php wp_dlm_show_downloads(1,10); ?> to output a list the top ten downloads (which needed an additional tweak to the code in legacy_shortcodes.php for it to display exactly how I wanted it) but replaced it with <?php do_shortcode('[downloads query="limit=10&orderby=hits" format="3"]'); ?> which I hoped would do the same thing but now no list appears.

    Any pointers as to what I’m doing wrong appreciated, should the php code I’m inserting be more along the lines as suggested in this thread?

    The custom output format I’m using is {hits} - <a href="{url}" title="Downloaded an incredible {hits} times">{title}</a> to emulate how the links appeared using the previous code. Thanks in advance for any assistance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Mike

    @jolley_small

    echo do_shortcode()

    without the echo it won’t output 🙂

    Thanks sorted – had to tweak the code slightly as it was showing the least downloaded files instead the most downloaded ones:
    <?php echo do_shortcode('[downloads query="limit=10&orderby=hits&order=desc" format="3"]'); ?>

    Cool – it works for me to. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: WordPress Download Monitor] Unable to get top 10 list displaying in sidebar widget’ is closed to new replies.
Skip to toolbar