Forums

[resolved] Promotion slider v 331 (pro slider) (4 posts)

  1. Harty
    Member
    Posted 7 months ago #

    This is a strange one.

    I have two categories. Let's calls them ad1 and ad2.
    I create a page, assign a featured image to it and tick the category box 'ad1'. I repeat this using a new page, a different graphic and assign it to 'ad2'.
    I place the following shortcodes in their own text widget:
    [promoslider id="ad1" width="250px" height="250px"]
    and
    [promoslider id="ad2" width="250px" height="250px"]
    But only ad1 shows, it appears twice. Once where it should, and then in place of the one for ad2.
    No matter what I do, only one category is ever shown.
    Even after deleting categories, pages and graphics and starting over.

    Any clues?

    Thanks.

  2. Micah
    Member
    Posted 7 months ago #

    You will need to define the category within the shortcode. The id is just used as the HTML id and does not dictate what will appear in the slider. Your new shortcodes should be:

    [promoslider id="ad1" category="ad1" width="250px" height="250px"]
    [promoslider id="ad2" category="ad2" width="250px" height="250px"]

    It is important to note that, if you don't define a category, all slides will be displayed. This is why you see the same ad twice. Both sliders are pulling from the same set of slides: all of them.

  3. Harty
    Member
    Posted 7 months ago #

    Thank you woodent - that fixed it. Steve.

  4. Technobitly
    Member
    Posted 7 months ago #

    Thank you woodent - that fixed it

Reply

You must log in to post.

About this Topic