WordPress.org

Ready to get started?Download WordPress

Forums

My Content Management
How to have it rotate between testimonals in a side widget? (4 posts)

  1. Karissa
    Member
    Posted 2 years ago #

    So now I am trying to get it to rotate between testimonals in a side widget. Puting the shortcode in doesn't work. and I'm not getting the Excerpt to reorder or make it be a short amount of information.

    How would I do this?

    http://wordpress.org/extend/plugins/my-content-management/

  2. Joe Dolson
    Member
    Plugin Author

    Posted 2 years ago #

    I'm not sure I understand your question. First, what do you mean by "rotate"? The plug-in doesn't handle any dynamic behaviors; those need to be triggered externally. If you just mean come up with a single random testimonial, that should be doable using the sidebar widget; but I'm not sure what you mean by "getting the excerpt to reorder", either.

  3. Karissa
    Member
    Posted 1 year ago #

    Rotate meaning when they refreash the page it is a different random testimonal.

    I tried adding the shortcode to a side widget and it didn't work. Then read up on making them work by adding add_filter('widget_text', 'do_shortcode'); to the functions.php file.
    That fixed it but now its all of them. I just want one.

    What do I need to do?
    The site I'm working on is:
    http://kissaskreations.net/sites/pamharkendorff/testimonials/

    Reorder meaning set a number to each testimonal to sort by instead of the order they were entered.

  4. Joe Dolson
    Member
    Plugin Author

    Posted 1 year ago #

    If you want a random item on each load, you have to choose 'rand' as your ordering method. If you're using menu_order and choose a count of 1, you'll always get the first one.

    As a note, if you're using Post Types Order to set your menu order, that conflicts with using rand as an order -- that plug-in overrides other ordering.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic