WordPress.org

Ready to get started?Download WordPress

Forums

Carousel Horizontal Posts Content Slider
Loads always the same posts (3 posts)

  1. astpaul
    Member
    Posted 1 year ago #

    Hi

    This plugin is really great. I looked for it for a long time. However, I can't seem to make it work properly.

    I have added 2 categories to be displayed and requested 15 posts to be shown but it always shows 6 only (see http://roxanajones.com/2012/12/22/inspirational-quote-the-beginning-is-the-end/).

    What did I do wrong?

    Note: This should not affect the described issue but I modified the code of your main php file to display just the image with the URL. For your info here is the code I modified beginning line 45:


    $slider_gallery.= 'post_title . '">'.attachment_image_filter($post->ID, 'thumbnail', 'title="' . $post->post_title . '"').'';
    }
    /* $slider_gallery.= '
    <h2>'.$post_title.'</h2>
    ';
    $slider_gallery.= '<p><span class="foo_con">'.tchpcs_clean($post_content, $displaydesc).'</span></p>...';

    $slider_gallery.= '
    <span class="more">read more</span>';
    */

    Thanks a lot

    http://wordpress.org/extend/plugins/carousel-horizontal-posts-content-slider/

  2. subhansanjaya
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Astpaul,
    Thank you for downloading the plugin and I'm sorry for replying you so late. You will find a working example of this plugin on below web site. Please, have a look.

    http://www.unawatunabeach.net

    I used the same plugin and made few changes as you did. In addition I added href attribute before the image in order to link the images. also I made some changes to the css file.

    Here is my code-

    carousel-horizontal-posts-content-slider.php
    line 44 -52

    if($displayimage=="YES"){
    $slider_gallery.= ''.attachment_image_filter($post->ID, 'thumbnail', 'alt="' . $post->post_title . '"').'';
    }
    /*$slider_gallery.= '<h2>'.$post_title.'</h2>';
    $slider_gallery.= '<p><span class="foo_con">'.tchpcs_clean($post_content, $displaydesc).'</span></p>...';
    $slider_gallery.= '<span class="more">read more</span>'; */
    $slider_gallery.= '</div>';

    }

    It works fine for me. I can't tell you what went wrong till looking at your code or your live site. Also images are always same size. There is a small function to makes images specified size. please, check line #104. according to the size of images, you can change the width of #foo_content id in custom-style. css file. also you customize it way you want by adding background colors, borders etc. If you are using another css file to image attribute, please, have a look at it.

    return "<img width='115' height='115' src='". $attachment[0] . "' " . $attributes . " />";

    Please, have a look at your code again. I hope you can figure it out. Let me know if you need any further assistance.

    Thank you.

  3. astpaul
    Member
    Posted 1 year ago #

    Thank you so much for your feedback. I went to another plugin yesterday.
    I wish you an awesome year ahead.

    Take care.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.