• paul_g_787

    (@paul_g_787)


    Hi

    I found a bug with the shortcode

    If you try to specify the category and post type in the shortcode at the same time nothing shows. Alternatively I just tried the category but because it comtains custom post types none show up.

    So could you please change it so that the shortcode allows both category and post type at the same time?

    Feature Requests
    —————-
    I have a page template which gets the sdm posts from the category specified by id.

    I have used get_the_title() to show the name of the download and get_the_date() to show the publish date. Then underneath I used do_shortcode(‘[sdm_download id=’.get_the_ID().’ fancy=”0″]’) to display the download button.

    1. Could you please add support to the shortcode to display only a download counter? e.g. [sdm_download id=123 downloadcounteronly=1]

    This would be very useful because I would like to display a download counter next to the button. Alternatively perhaps have an additional option for fancy= in the shortcode so that it simply shows the button and then xx Downloads to the right of it. e.g. [sdm_download id=123 fancy=x] where x is a number you haven’t used yet.

    2. Could you please add support to the shortcode to display only the description text? e.g. [sdm_download id=123 descriptiononly=1]

    This would be very useful because I would like to show the description above the download button / under the title & date.

    e.g. In my page template
    <h2><?php echo get_the_title(); ?></h2>
    <h5><?php echo get_the_date(); ?></h5>
    <p>[sdm_download id=123 descriptiononly=1]</p>

    If you could see your way to implementing these two features I would much appreciate it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Thank you for reporting this. The plugin developers will investigate further your findings.

    Kind regards

    Plugin Author mra13

    (@mra13)

    Can you please give me an example shortcode that I should use to reproduce the bug you suggested?

    Thread Starter paul_g_787

    (@paul_g_787)

    It was if you use category=05 or category-“my-category” nothing shows up at all. It is as if it is not recognising sdm_categories.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shortcode Request’ is closed to new replies.