• Resolved arthurmello1

    (@arthurmello1)


    Hello again Ron,

    I am needing to display some specific posts and specific pages fixed in Slider, instead of the most recent posts, which is the original standard.

    I believe with the IDs of the pages and posts you want, this is possible …

    Can I do this?

    If yes, how can I do?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author ronangelo

    (@ronangelo)

    Enable the slider then add this on your child-theme’s functions.php

    function custom_slider_content() {
       return array(
    	'ignore_sticky_posts'	=> 1,
    	'post_type' 		=> 'any',
    	'post__in'		=> array ( 1, 2, 3 ),
       );
    }
    add_filter( 'frontier_slider_query', 'custom_slider_content' );

    Replace 1,2,3 with your posts and pages ID.

    Thread Starter arthurmello1

    (@arthurmello1)

    Ok, it worked fine!

    Thank you again! ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to display some specific posts and specific pages fixed in Slider?’ is closed to new replies.