• Resolved port80services

    (@port80services)


    Hi there. First off, many thanks for this excellent plugin. Right out of the box it does practically everything I need and is highly customisable.

    I just need advice on one aspect. I have links to view testimonials by particular category. This is easy enough – I just taking the category slug (/testimonial-category/*CATEGORY-NAME*/).

    My issue is that the link opens a page that uses the standard WP archive template. So while my main testimonial page uses all my css styling and has the name/details of the person who gave the quote, the category lists do not. Is there any way I can have my default testimonial view I have set up apply to archive (indivdual category) view too? Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Chris Dillon

    (@cdillon27)

    Thanks. I’m glad to hear it’s working well so far.

    This may not be what you want to hear but the best approach is to customize your theme. You can create, or hire someone to create, custom templates for individual testimonials and the category archive.

    The second best option may be to forgo the built-in category permalink structure and create (child) pages for each category and a view for each category.

    Why? Because WordPress expects themes to control the display and plugins to provide functionality. So plugins are limited in how far they can reach into themes for inherent mechanisms like archive pages, which is why the plugin has to include its own templates.

    That said, I am experimenting with supplanting that process but it’s been problematic so far (and not fun) because it’s forcing WordPress to so something it was not designed to do.

    Thread Starter port80services

    (@port80services)

    Hi Chris

    Thanks v much for the prompt reply. I ended up going down the child pages route. It’s not 100% ideal but certainly the easiest solution.

    Thx again.

    Anonymous User 15250415

    (@anonymized-15250415)

    Hey there I have a question about this exact same problem – thanks for the explanation above really appreciated!

    I am thinking of going down the route of creating child pages for the categories so I can creaate views and style the testimonials. Does this mean I just need to redirect the original category archive page to my new page? Is it as simple as that?

    Sorry if I’ve missed a trick..!

    I refer to: “The second best option may be to forgo the built-in category permalink structure and create (child) pages for each category and a view for each category.”

    Plugin Contributor Chris Dillon

    (@cdillon27)

    If you have displayed the URL somewhere and it’s already getting traffic, then redirect.

    The child page approach does not replace the category archive in WordPress internally, it simply mimics the URL structure.

    If you prefer a purist approach, I can provide some code to disable the category permalinks so there will be only one true version of the category page.

    Anonymous User 15250415

    (@anonymized-15250415)

    Understood, thanks all sorted ?? I love the plugin it has been super useful and the support was very fast, thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Category (archive) view’ is closed to new replies.