IvyCat AJAX Testimonials
[resolved] Feature Request: has_archive (5 posts)

  1. Richard Bush
    Posted 2 years ago #

    Would it be possible to add has_archive support to the ic_testimonials_post_type_args array in your next update?

    We have many clients who like to have a testimonials landing page as well as sprinkling them through out the site.



  2. ivycat
    Plugin Author

    Posted 2 years ago #

    Hello Richard,

    I'll see about adding that to the roadmap.

    In the meantime, our last update included some filters you can use to leverage your request as well.

    We have one filter 'ic_testimonials_post_type_args' you can use something like:

    function add_has_archive_testimonials( $args ){
        $args['has_archive'] = true;
        return $args;
    add_filter( 'ic_testimonials_post_type_args', 'add_has_archive_testimonials' );

    In your functions.php file.

  3. Richard Bush
    Posted 2 years ago #

    Excellent, thanks!

  4. winterglow
    Posted 2 years ago #

    Thanks for the above functions. This worked for me and I'm able to see all the reviews on an archive page: http://test.winterglow.com/testimonial-group/testimonials

    Now, how can I get the reviews to show up on my Reviews landing page - http://test.winterglow.com/reviews-testimonials? As a work-around, I'm redirecting my Reviews page to the archive page, but I'd rather be able to eliminate the directory 'testimonial-group' from the URL. Any ideas on how to load the archive page inside a page template? I tried 'get_template_part( 'loop', 'reviews' );' to load my loop-reviews.php, but that's not working.

  5. winterglow
    Posted 2 years ago #

    Solved my own problem!
    Just needed to use <?php query_posts( 'post_type=testimonials'); ?> in my template.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • IvyCat AJAX Testimonials
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.