WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Feature Request: has_archive

[Resolved] Feature Request: has_archive

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ivycat

    @ivycat

    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.

    Excellent, thanks!

    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.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Feature Request: has_archive’ is closed to new replies.