WordPress.org

Ready to get started?Download WordPress

Forums

Testimonial Rotator
'Testimonials' - post_type / page name / slug name (3 posts)

  1. rubbermike
    Member
    Posted 11 months ago #

    Hi - would be appreciative of your input.

    If I do the following..

    1. Set up some testimonials

    2. Put all the above testimonials in the same rotator.

    3. The shortcode for this rotator is hard-coded into a WP page template file:
    <?php echo do_shortcode('[testimonial_rotator id=180 format=list]'); ?>

    4. A page titled 'Testimonials' (also with the slug 'testimonials') is set up in WP, using the above WP page template.

    5. I click the ' Testimonials ' WP page link - created on the front end.

    At this point my post archive appears listing the testimonials, not utilising the page template as required.

    I've not looked at this in depth, but appears to be a conflict with the slug/custom post type both being 'testimonials' and/or the 'testimonials' rewrite that occurs on the plugin.

    If I change the slug name on the 'Testimonials' WP page, it works as I want, but I really would like to keep the slug the same as the page title.

    Any quick ideas or input would be appreciated.

    Many thanks for an otherwise great plugin.

    Mike

    http://wordpress.org/plugins/testimonial-rotator/

  2. rubbermike
    Member
    Posted 11 months ago #

    Ill rewrite your custom post type :(

  3. Hal Gatewood
    Member
    Plugin Author

    Posted 11 months ago #

    If you're familiar with filters, I have a filter setup for the testimonial rotator slug:

    testimonial_rotator_testimonial_slug

    If you wanted to update it you could add this to your functions.php in your theme folder and then go into Settings -> Permalinks and resave them.

    function testimonial_rotator_new_slug( ) {
        return 'praise';
    }
    add_filter( 'testimonial_rotator_testimonial_slug', 'testimonial_rotator_new_slug' );

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.