• Resolved Alelouya

    (@alelouya)


    Hi, to have a page with the list of all testimonials, do I need to create a page and put the shortcode [testimonials] ?
    It seems to me to have seen last summer that the url “/testimonial” showed the full list within the theme’s template, but have I dreamed?

    Besides, if I choose a testimonial category and add it to the menu, the generated link is “/testimonial/category_slug”, but
    even though there are testimonials in this category, I have “page not found” message. Any idea ?

    https://wordpress.org/plugins/easy-testimonials/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor richardgabriel

    (@richardgabriel)

    Hey Aleloya –

    to have a page with the list of all testimonials, do I need to create a page and put the shortcode [testimonials] ?

    Yep! I think it is possible you were dreaming — unless you had your theme setup in a way that allowed that.

    Besides, if I choose a testimonial category and add it to the menu, the generated link is “/testimonial/category_slug”, but
    even though there are testimonials in this category, I have “page not found” message. Any idea ?

    Try going to your Permalink settings and clicking the Save button — occasionally issues like this will popup with Custom Post Types and Custom Taxonomies, and I find that refreshing the Permalinks takes care of it.

    I hope that helps!

    All the best,
    Richard

    Thread Starter Alelouya

    (@alelouya)

    ok, thank you very much for your reply and the very useful tip of refreshing the permalink.
    However, it didn’t work in this case ; I thought that maybe this tool of wordpress admin panel (allowing to add testimnial category to a menu which implies that the page of a testimonial’s category list is generated using theme’s template, under “testimonial/category-name”) is misleading and that I first have to create a page putting the shortcode [testimonials category=’xxx’], and then add that page to the menu.
    Kindly confirm.

    Also, the breadcrumb on a single testimonial page doesn’t show “testimonials”, or testimonial-category as parent of that particular post ; it’s directely after the homepage.
    If I understand well, this is a normal behavior. ?

    Plugin Contributor richardgabriel

    (@richardgabriel)

    Hey Aleloya!

    The most reliable way to output testimonials by category, and get our styled HTML, is to put a shortcode per category on their own pages.

    Can you let me know what you use for breadcrumbs? They aren’t something we have focused on, yet, so I’m not sure what a normal expectation should be at this point.

    All the best,
    Richard

    Thread Starter Alelouya

    (@alelouya)

    Hi,
    The breadcrumb I’m using is supplied by my theme.
    I looked into the code, there’s

    if (is_single()) {
    			if (has_category()) {
    				$category = get_the_category();
    				echo '<a href="'.get_category_link($category[0]->cat_ID).'">'.$category[0]->cat_name.' &raquo; </a>';
    			}
            }

    before

    if (is_page() || is_single()) {
                echo ''.get_the_title().'';
            }

    but the testimonial category is not detected.
    If I understood well, testimonial is a custom post type, which is also not detected.
    What I find a bit upsetting is that breadcrumb doesn’t show “testimonial” as a sort of category, whereas the url of a single testimonial is testimonial/post_title.
    But on the other hand, if there’s no archive page with “testimonial(s)” as url, maybe that’s logic.

    Plugin Contributor richardgabriel

    (@richardgabriel)

    Hello!

    Thanks for all of the information.

    We had a bug in our Category Listings by URL, the Permalinks weren’t being written correctly, and it may be related to this report.

    Can you please download version 1.20.7, and, once updated, go ahead and Save your Permalinks again to be sure they are flushed.

    Once done, you should be able to view the individual Category pages without 404s (it is working, in testing, for us.) I’m not sure if that will help the Breadcrumbs or not — let me know about that.

    All the best,
    Richard

    Thread Starter Alelouya

    (@alelouya)

    Yes ! After refreshing the permalink, the category page worked !
    Thank you so much for fixing it.
    I’m really amazed by your active support.

    However, the category name was not shown as page title (h1), I saw that archive.php of my theme doesn’t make any query for this, so I added in h1:

    elseif (is_tax()) :
                            $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
                            echo $term->name;

    Maybe there’s a more elegant way, but it works.
    FYI, from what I saw, most of themes just output “archives”, except Twenteen fifteen which outputs “Testimonial category : XXX”.

    The breadcrumb is not finding the category neither, which annoyed me more.
    I have a similar issue with the events calendar plugin. (They have their own templates, and the full events page is listed under “/events” with no breadcrumb, but the event category page and single event page show empty breadcrumb, not even single event title.)

    Maybe I need to get into the code for the breadcrumb.

    I’d appreciate if you have any suggestion for finding the custom post type name and the custom category name (and the url ?) from a single testimonial page and a list page.

    Plugin Contributor richardgabriel

    (@richardgabriel)

    Hey!

    I’m glad to hear that got things working for you!

    To learn more about Custom Post Types, Taxonomies, and loading their data, you’ll be best served by reading the Codex and checking out some answers on Stackoverflow — they’ll get you in the right direction!

    All the best,
    Richard

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Full testimonials page’ is closed to new replies.