WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: rotating-posts] questions (25 posts)

  1. YukataNinja
    Member
    Posted 5 years ago #

    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) 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(); ?>
  2. YukataNinja
    Member
    Posted 5 years ago #

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

  3. IO-Mena
    Member
    Posted 5 years ago #

    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.

  4. YukataNinja
    Member
    Posted 5 years ago #

    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.

  5. pukaface
    Member
    Posted 5 years ago #

    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?

  6. IO-Mena
    Member
    Posted 5 years ago #

    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 ?

  7. YukataNinja
    Member
    Posted 5 years ago #

    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.

  8. JaneLitte
    Member
    Posted 5 years ago #

    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);
  9. YukataNinja
    Member
    Posted 5 years ago #

    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 . "'/>";
  10. JaneLitte
    Member
    Posted 5 years ago #

    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?

  11. YukataNinja
    Member
    Posted 5 years ago #

    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);

  12. YukataNinja
    Member
    Posted 5 years ago #

    @JaneLitte, I have made your idea a feature. Thanks!

    @Stef, posts can now be randomized, thanks for the idea =)

  13. alexpike
    Member
    Posted 5 years ago #

    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.

  14. YukataNinja
    Member
    Posted 5 years ago #

    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.

  15. TFA1979
    Member
    Posted 5 years ago #

    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

  16. Akatoki
    Member
    Posted 5 years ago #

    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

  17. YukataNinja
    Member
    Posted 5 years ago #

    TFA1979,
    Did you get this working? Can you send me a link of the broken page?

    Akatoki,
    Does the text extend beyond the size of the post division? Try setting the <!--more--> tag really far up in your post. The post division is a fixed height (changeable in CSS) and any text beyond that is cut off from the users view.

  18. mjdb
    Member
    Posted 5 years ago #

    Hi,

    I had two questions. 1) I installed the plugin successfully, but I am unable to get the Read More to work. 2) is there a way for the excerpt to display with the thumbnail?

    Any help with this would be great.

    Thanks

  19. mvillaca
    Member
    Posted 5 years ago #

    can this plug-in be used with PAGES instead of POSTS?

  20. pblk
    Member
    Posted 4 years ago #

    Hi,

    Thanks for the great plugin.

    If you have time, could you please point me in the right direction to edit rotating-posts.js so that the posts have a fade transition using scriptaculous?

  21. wwe
    Member
    Posted 4 years ago #

    This plugin is awesome so far!
    Ok, call me crazy, but I'm looking to merge it somehow with Event Calendar 3 (http://wordpress.org/extend/plugins/event-calendar/other_notes/) so that I can scroll posts during a SPECIFIC TIME until "expired" as set in Event Calendar 3. So for example, if today is Monday, 12-7-09, and I have 11 future events, say on Dec. 8, 9, 10, 11, 12, 14, 16, 18, 20, 24, and 25th; it scrolls only those posts 5 days in the future (or some other trivial time stop) - so there would be 5 posts rotating here since five days from today would the 12th, and there just happens to be 5 posts (Dec. 8,9,10,11,12) up until the 12th. Is there already a plugin/widget that does this? And if not, would this be a good merging?
    Any info or pointers would be greatly appreciated!
    Thanks in advance... ;)

  22. YukataNinja
    Member
    Posted 4 years ago #

    RE:wwe
    There is no planed feature for this. It is possible to do, if you know PHP, SQL, and WP programing, by adding to the query to WP_Query call in rotating_posts.php for the date of those posts.

  23. bpr@brigittepellerinrobson.com
    Member
    Posted 4 years ago #

    Hi, is it possible not to show the post numbers underneath? I'm using it at http://www.thinkingwomanshammer.com/choiceforchildcare and I would like to have just the images displayed, not the number of posts underneath. Any advice?
    Thanks!

  24. marvc
    Member
    Posted 4 years ago #

    Apologies in advance if this question has been answered but is it currently possible to have two instances of rotating posts on a single page displaying posts from two different categories? So:

    Rotating Post 1 = News Category

    Rotating Post 2 = Featured Category

    Rotating Post 3 = Alternate Category

    Any responses appreciated.

  25. Pb164
    Member
    Posted 4 years ago #

    hello!
    Is it possible to make some changes to "onClick" trigger? It is not valid for XHTML, the other thing is navigation buttons and thumbnails are lack of alt tag.

    The "alt" tag could be taken from post title and this is not so huge problem, but "onClick".... it should be possible to place all navigation in external script.. this will help with all validation problems (images alts and "onClick")

Topic Closed

This topic has been closed to new replies.

About this Topic