Title: [Plugin: rotating-posts] questions
Last modified: August 19, 2016

---

# [Plugin: rotating-posts] questions

 *  [YukataNinja](https://wordpress.org/support/users/yukataninja/)
 * (@yukataninja)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-rotating-posts-questions/)
 * Other user’s questions:
 * >  Wow, it’s a very awesome plugin
   >  But I got a problem: I don’t know anything
   > about CSS and programing them so I wanna know if there’s a forum about your
   > new plugin. It would very cool many other people could write different CSS 
   > for people like me. Thanks -Javi
 * If you develop some CSS and want to share, please post about it here.
 * >  Hi,
   >  This is a great plugins. Can I have more than 1 rotating post in one 
   > site?
   > Is that possible to have random post? it means that if I have 20 posts in one
   > category, I can actually set 5 in “number of post” and the display not only
   > limited to post 1-post5, but it will continuously play post 1-20 randomly?
   > 
   > Great job. stef
 * You can insert more than one ‘rotating post’ but they will all be identical. 
   Also there is no random selection. But if there is interest in these two features
   I could add them.
 * >  Where do you put
   > in the idnex.php file of th theme?
   > -tony
 * If you are using the Default theme with wordpress 2.7 and want to look like the
   demo site ([http://demo.inderhees.net](http://demo.inderhees.net)) then this 
   is what i did. I removed all of the code from
    `<?php if (have_posts()) : ?>`
   to `<?php endif; ?>` So my entire index.php looks like
 *     ```
       <?php
       /**
        * @package WordPress
        * @subpackage Default_Theme
        */
   
       get_header(); ?>
   
       	<div id="content" class="narrowcolumn">
       <?php rotating_posts(); ?>
   
       	</div>
   
       <?php get_sidebar(); ?>
   
       <?php get_footer(); ?>
       ```
   

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/plugin-rotating-posts-questions/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-rotating-posts-questions/page/2/?output_format=md)

 *  Thread Starter [YukataNinja](https://wordpress.org/support/users/yukataninja/)
 * (@yukataninja)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-rotating-posts-questions/#post-984298)
 * >  It is good job.
   >  I am beginner of css and php programming. So, I can’t make
   > any css file. Can you send to your customized css version? -jake
 * Sorry, the customized CSS code at [http://www.weareecs.com](http://www.weareecs.com)
   is proprietary. But if you want to get started, start with the provided css at
   [http://demo.inderhees.net/wp-content/plugins/rotating-posts/rotating-posts.css](http://demo.inderhees.net/wp-content/plugins/rotating-posts/rotating-posts.css)
 *  [io-mena](https://wordpress.org/support/users/io-mena/)
 * (@io-mena)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-rotating-posts-questions/#post-984338)
 * I have installed the plug-in, it’s very nice, I wondering if you would add the
   Read More break by default after few words ?
 * So if i have added read more break or i didn’t , it will be there in the rotating
   post place.
 *  Thread Starter [YukataNinja](https://wordpress.org/support/users/yukataninja/)
 * (@yukataninja)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-rotating-posts-questions/#post-984391)
 * >  I have installed the plug-in, it’s very nice, I wondering if you would add
   > the Read More break by default after few words ?
   > So if i have added read more break or i didn’t , it will be there in the rotating
   > post place.
 * It could be possible to add a user setting to end the post after so many characters,
   if there’s enough interest in that. But the functionality of the `<!--more-->`
   tag is already nicely built into WordPress. Thanks for the idea.
 *  [pukaface](https://wordpress.org/support/users/pukaface/)
 * (@pukaface)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-rotating-posts-questions/#post-984423)
 * None of this worked for me.
    I tried all the advice given… I even changed my 
   index.php file to exactly resemble yours, and it did nothing to my site… I’m 
   at hhhead.com by the way, maybe my theme has something to do with it?
 *  [io-mena](https://wordpress.org/support/users/io-mena/)
 * (@io-mena)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-rotating-posts-questions/#post-984459)
 * Hi,
    I also suggest if you would like to add an option to set the size of the
   rotating post area like height, weight and give the code to post any where you
   want
 * that will help for people who don’t know much about CSS and also save time for
   who can edit.
 * if possible you can add more options like setting the color of the
 * 1-post title
    2-background 3-post content
 * even with the color wheel to choose from.
 * there is some options you can add like – already designed template files.. i 
   actually get this idea from another plug ins
 * also if you know about the plug-in PostLayout, it gives you an easy way to add
   the code. would you add some options like it ?
 *  Thread Starter [YukataNinja](https://wordpress.org/support/users/yukataninja/)
 * (@yukataninja)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-rotating-posts-questions/#post-984478)
 * >  None of this worked for me.
   >  I tried all the advice given… I even changed 
   > my index.php file to exactly resemble yours, and it did nothing to my site…
   > I’m at hhhead.com by the way, maybe my theme has something to do with it?
 * If you’re using a custom theme you need to understand what code is actually being
   run to display the front page and insert `<?php rotating_posts(); ?>` there.
 * > Hi,
   >  I also suggest if you would like to add an option to set the size of the
   > rotating post area like height, weight and give the code to post any where 
   > you want
   > that will help for people who don’t know much about CSS and also save time 
   > for who can edit.
   > if possible you can add more options like setting the color of the
   > 1-post title
   >  2-background 3-post content
   > even with the color wheel to choose from.
   > there is some options you can add like – already designed template files.. 
   > i actually get this idea from another plug ins
   > also if you know about the plug-in PostLayout, it gives you an easy way to 
   > add the code. would you add some options like it ?
 * My intention was to expose the CSS easily so it can be edited by those that know
   how. I do not plan to add any functionality into the plugin itself if CSS could
   accomplish that task. I hope that someday there are more people who do make CSS
   for their theme to support this plugin, which themes I would link to on the wordpress
   page.
 *  [JaneLitte](https://wordpress.org/support/users/janelitte/)
 * (@janelitte)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-rotating-posts-questions/#post-984498)
 * I was wondering if I could change the posted content to just show an image. I
   added a custom field where I would paste the URL of the image. I wasn’t sure 
   what to change in the code. The existing code is:
 *     ```
       $postContent = get_the_content(get_option(RP_OPTION_READ_MORE));
   
                   $postContent = apply_filters('the_content', $postContent);
   
                   $postContent = str_replace(']]>', ']]>', $postContent);
       ```
   
 * I was thinking of changing it to
 *     ```
       $postContent = get_post_custom_values($RotatingPostImage);
   
                   $postContent = str_replace(']]>', ']]>', $postContent);
       ```
   
 *  Thread Starter [YukataNinja](https://wordpress.org/support/users/yukataninja/)
 * (@yukataninja)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-rotating-posts-questions/#post-984501)
 * > I was wondering if I could change the posted content to just show an image.
   > I added a custom field where I would paste the URL of the image. I wasn’t sure
   > what to change in the code…
 * In your custom field you would need to put in full html like `<img src="myurl.
   img"/>` then you don’t want to strip out the html tag so just override the content
   with your first line:
 *     ```
       $postContent = get_post_custom_values($RotatingPostImage);
       ```
   
 * if you want to be slightly more clever and just want to enter the URL in the 
   custom field then this should work:
 *     ```
       $postContent = get_post_custom_values($RotatingPostImage);
       $postContent = "<img src='" . $postContent . "'/>";
       ```
   
 *  [JaneLitte](https://wordpress.org/support/users/janelitte/)
 * (@janelitte)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-rotating-posts-questions/#post-984508)
 * I’ve tried `$postKey = get_post_custom_values(“RotatingPostImage”);
    $postKey
   = “<img src='”. $postKey . “‘/>”;` and the output is
 * `<img src=''/>`
 * If I do
 *     ```
       $postKey = get_post_meta($post->ID, 'RotatingPostImage', $single = true);
                   $postKey = "<img src='". $postKey . "'/>";
       ```
   
 * and the output is
 * `<img src=''/>`
 * Any suggestions? Am I doing something wrong in outputting the key?
 *  Thread Starter [YukataNinja](https://wordpress.org/support/users/yukataninja/)
 * (@yukataninja)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-rotating-posts-questions/#post-984512)
 * [http://codex.wordpress.org/Function_Reference/get_post_custom_values](http://codex.wordpress.org/Function_Reference/get_post_custom_values)
 * get_post_custom_values() returns an array. So I would recommend
 *     ```
       $postKey = get_post_custom_values("RotatingPostImage");
       $postKeyHTML = "<img src='". $postKey[0] . "'/>";
       ```
   
 * Also, this needs to be with the other code inside the loop.
 * Another helpful method for debugging in php is var_dump($myvar);
 *  Thread Starter [YukataNinja](https://wordpress.org/support/users/yukataninja/)
 * (@yukataninja)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-rotating-posts-questions/#post-984514)
 * [@janelitte](https://wordpress.org/support/users/janelitte/), I have made your
   idea a feature. Thanks!
 * [@stef](https://wordpress.org/support/users/stef/), posts can now be randomized,
   thanks for the idea =)
 *  [alexpike](https://wordpress.org/support/users/alexpike/)
 * (@alexpike)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-rotating-posts-questions/#post-984520)
 * hi, wanna ask you. what settings i should make to realize this things:
    i need
   to show on index page 3 blocks this rotating post from different 3 categories.
   i mean that i have 3 categories and i have to show rotating posts from each: 
   posts from cat1, posts from cat2, posts from cat3?
 * maybe i need to write something like
    <?php echo rotating_posts(‘showposts=4′,’
   cat=5’ and other variables); ?> ? Please Help.
 *  Thread Starter [YukataNinja](https://wordpress.org/support/users/yukataninja/)
 * (@yukataninja)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-rotating-posts-questions/#post-984522)
 * > hi, wanna ask you. what settings i should make to realize this things:
   >  i need
   > to show on index page 3 blocks this rotating post from different 3 categories.
   > i mean that i have 3 categories and i have to show rotating posts from each:
   > posts from cat1, posts from cat2, posts from cat3?
   > maybe i need to write something like
   >  <?php echo rotating_posts(‘showposts=
   > 4′,’cat=5’ and other variables); ?> ? Please Help.
 * Settings are done on the Rotating Posts settings page in the admin area. The 
   php command does not (currently) take any arguments. On that settings page you
   can set what category you want and how many posts to show. If you have multiple
   categories, you will need to put them all as a subgroup of a different category
   and then select that super category on the settings page.
 *  [tfa1979](https://wordpress.org/support/users/tfa1979/)
 * (@tfa1979)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-rotating-posts-questions/#post-984540)
 * Hi, thanks for the great plug-in. I have everything set. I see the information
   for the first post in the main content area and I see the other 4 posts thumbnails.
   So visually everything is working great. My only problem is it’s not rotating.
   It only stays on the first post. I try to click the arrow, the pause/unpause 
   button and the thumbnails. Nothing seems to switch from that first post. Almost
   like it is locked on that first one. Another thing I noticed is both || (pause
   buttons) show up the blue and red one. Would you have any advice on fixing this.
   
   Thanks
 *  [akatoki](https://wordpress.org/support/users/akatoki/)
 * (@akatoki)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-rotating-posts-questions/#post-984564)
 * Hey,
 * Plugin works great except for one thing.
 * When the plugin is activated and working I however don’t see the “Read More” 
   link that is usually found just above the arrows.
 * I have tried to modify the CSS, look through the code in the plugins editor. 
   Even just install a blank fresh copy straight from here without any modifications
   and I still don’t see it.
 * Any help is appreciated, thanks in advance.
 * Cheers,
    -Kai

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/plugin-rotating-posts-questions/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-rotating-posts-questions/page/2/?output_format=md)

The topic ‘[Plugin: rotating-posts] questions’ is closed to new replies.

 * 24 replies
 * 14 participants
 * Last reply from: [Pb164](https://wordpress.org/support/users/pb164/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/plugin-rotating-posts-questions/page/2/#post-984644)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
