• Resolved bustedgiz

    (@bustedgiz)


    Apologies up front. Have looked in support and google for answers but no joy….

    Looking for a shortcode to display just a couple of categories on a page….

    Also am i being dumb (clearly)…how can i get promoslider to resize featured images to smaller size so they fit in the side bar? is this possible….?

    currently added a new category and resizing all the pics = PAIN!!!

    HELP.

    Many thanks in advance…..

    Busted

    https://www.ads-software.com/extend/plugins/promotion-slider/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    To display promotions from specific category, use this shortcode:
    [promoslider category="my_category"]

    I am not sure, but I think you have to put a category slug there, if not, then category ID. Take a look at more options at: FAQ.

    To resize images to fit in the sidebar, you may use just simple CSS

    #your_slider_id .promo_slider_background_image img {
    /* replace pixels with your desired width and height */
    width: 250px;
    height: 100px;
    }

    That’s an easy way, but the harder (though more efficient) way is to modify promotion slider plugin and add new image sizes. I think you can also use filters in your functions.php, but not so sure if it works:

    function add_my_image_sizes () {
    // add_image_size('uniqueImageName', $width, $height, $crop_image_if_necessary);
    add_image_size('banner', 250, 100, true);
    }
    
    add_filter('promoslider_image_size', 'add_my_image_sizes');

    Maybe the owner of this plugin can help out with this one.

    Thread Starter bustedgiz

    (@bustedgiz)

    @ristoniiemets

    Thanks for the reply! I got the category shortcode already and reading back my post realise I wasn’t clear enough. Lets say I have 5 categories (1,2,3,4,5) and i want to just show items in categories 1,3&5. What would the shortcode be for that?

    RE the CSS code….gulp. Does that go into a folder/file in the plugin folder or somewhere directly in WP?

    Please – no laughing!!

    Thanks.

    Busted.

    CSS code goes to your theme’s folder and to the file style.css (put it on the bottom).

    Unfortunately this plugin does not have support for multiple categories as you need, but you can make promotions to one specific category and show them from that category.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Promotion Slider] Newbie help – Multiple categories’ is closed to new replies.