WordPress.org

Support

Support » Plugins and Hacks » Promotion Slider » [Resolved] Displays Images only

[Resolved] Displays Images only

  • I am trying to display slider on My Custom Page of my custom theme. I wrote the Php Code like this : <?php echo do_shortcode(‘[promoslider]’);?>

    It displays only list of the featured images on the page.

    I also wrote the code on function.php file as below.

    <?php

    function my_the_content_filter($content) {
    global $post;
    if( get_post_type( $post->ID ) == ‘post’ ){
    echo do_shortcode(‘[promoslider]’);
    }
    return $content;
    }

    add_action( ‘the_content’, ‘my_the_content_filter’ );

    ?>

    I need a help on this if possible a complete tutorial for custom theme.

    http://wordpress.org/plugins/promotion-slider/

Viewing 1 replies (of 1 total)
  • Plugin Author Micah Wood

    @woodent

    @aryadev,

    When you say “It displays only {a} list of featured images on the page…” what does that mean exactly? Perhaps you could provide more details / insight on what you are expecting and exactly what you are getting?

    By the way, ‘the_content’ filter won’t affect the content of the slider. Also, if you are trying to use that filter to add the shortcode, you need only prepend the string to the $content variable.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Displays Images only’ is closed to new replies.
Skip to toolbar