• Hi,

    I’m using the SteamPixel Category Slider plugin which works great to display a bunch of articles with preview images, etc. in a widget position.

    https://pastebin.com/qcyM1aB1

    For refining the results I want to make use of article tags additionally.

    That’s how the articles are crawled actually:

    function sp_tags_slider($atts){
    
    	$html = '';
    
    	//Get Attributes
    	$args = shortcode_atts(
    		array(//Set default
    			'category' => 'common',
    			'order_by' => 'post_date',
    			'order' => 'DESC',
    			'limit' => 10,
    			'text_length' => 200,
    			'link' => 'true',
    			'slide_duration' => 2000,
    			'auto_start' => 'true',
    			'start_time' => 60000,
    			'cycle_time' => 10000,
    			'show_headers' => 'true',
    			'image_size'	   => 'large',
    			'thumbnail_size'   => 'thumbnail',
    			'thumbnail_menu'   => 'true'
    		),
    		$atts
    	);

    Is it even possible to filter the results by article tags?

    kind regards

  • The topic ‘getting articles by tags for widget position’ is closed to new replies.