WordPress.org

Ready to get started?Download WordPress

Forums

Promotion Slider
Slider show all promotions! (5 posts)

  1. ludodesign
    Member
    Posted 1 year ago #

    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/

  2. Kelly
    Member
    Posted 10 months ago #

    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.

  3. tompumford
    Member
    Posted 10 months ago #

    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

  4. esmi
    Forum Moderator
    Posted 10 months ago #

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

  5. Micah Wood
    Member
    Plugin Author

    Posted 10 months ago #

    @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"]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.