• Resolved ludodesign

    (@ludodesign)


    Hello,

    i have a problem with the ids. I have 2 sliders with different promotions for each slider.

    I’ll try to explain:
    I have promotions 1 and 2 on myslider1. Promotions 3 and 4 on myslider2.

    In my code i have this for example : <?php echo do_shortcode(‘[promoslider id=”myslider1″ width=”100%” height=”300px”]’); ?>

    But on my page the promotionslider show all 4 promotions of all sliders! it seams like sliders id doesn’t exist or not included in this. I have checked promotions and it’s ok.

    I’m working with wordpress 3.6 and wpml.

    Do you have any idea?

    (sorry for my english)

    http://wordpress.org/plugins/promotion-slider/

Viewing 4 replies - 1 through 4 (of 4 total)
  • I think it is because all slides will show when nothing, or incorrect category or slider is entered. You are using the ‘ID’ for which purpose is to allow a CSS style.

    I am having the same problem. I was unable to select a category on the promotions page for some reason. Link to screenshot http://www.antennaengineering.co.uk/nocats.png so I went a different route and created posts where I could choose a category but still no joy. Link to screenshots http://www.antennaengineering.co.uk/shortcodecat.png, http://www.antennaengineering.co.uk/postcategoryselected.png.

    It shows all posts in the first slider I created then just the selected ones in the latest slider it created.

    Please Help

    As per the Forum Welcome, please post your own topic.

    Plugin Author Micah Wood

    (@woodent)

    @ludodesign & @tompumford,

    @raincity (aka Kelly) is right. The id attribute only sets the HTML attribute for the slider. If you want to limit what slides appear in a slider, you would use categories (aka Sliders) for that.

    To assign a promotion to a category, go to ‘Promotions’ => ‘Add New’, or edit an existing promotion. On the promotion edit screen, you will see a box to the right titled ‘Sliders’. Select one or more existing sliders, or click the ‘+ Add New Slider’ link to create a new one. Then, save your promotion.

    Next, fetch the slug for the slider you want to display. Just go to ‘Promotions’ => ‘Sliders’ and find the name of the slider you want to display. Look in the ‘Slug’ column and copy that.

    Finally, when creating your shortcode, use the slug you copied as the ‘slider’ attribute, like so:

    [promoslider slider="my_slider"]

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Slider show all promotions!’ is closed to new replies.