• 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(); ?>

Viewing 15 replies - 1 through 15 (of 24 total)
  • Thread Starter yukataninja

    (@yukataninja)

    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

    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

    (@yukataninja)

    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.

    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?

    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

    (@yukataninja)

    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.

    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

    (@yukataninja)

    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 . "'/>";

    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

    (@yukataninja)

    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

    (@yukataninja)

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

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

    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

    (@yukataninja)

    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.

    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

    (@akatoki)

    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)
  • The topic ‘[Plugin: rotating-posts] questions’ is closed to new replies.