WordPress.org

Ready to get started?Download WordPress

Forums

Promotion Slider
Displays Images only (2 posts)

  1. AryaDev
    Member
    Posted 10 months ago #

    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/

  2. Micah Wood
    Member
    Plugin Author

    Posted 9 months ago #

    @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.

Reply

You must log in to post.

About this Plugin

About this Topic