• Resolved Chris Hardie

    (@chrishardie)


    Hi. We have a template file in our theme, single-wpbdp_listing.php, to override the display of single directory entries. It was working fine on plugin versions through 6.1, but when we upgraded to 6.2.x, the single listing page now has no directory content (but header, sidebar, etc work fine). Reverting to 6.1 restores the listing display.

    I reviewed the changelog for recent versions but did not immediately see any mention of a change that would cause the use of this template to break.

    Can you clarify if using this template to override single listings should still work in 6.2.x? Any other guidance on how to address this issue? Thank you.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Support Garret L

    (@garret1996)

    Hi @chrishardie

    Thank you for reaching out about this. I’m Garret from the customer success team and I’m sorry to hear that you’re having a problem here. I’ll be happy to help!

    In that update, we did change some things regarding the h1 tags. We switched to using the theme h1 tags instead of our own. This change here is likely what caused the issue. https://github.com/Strategy11/business-directory-plugin/commit/c555c2b81add0568d0542adc03a7cb4114d2c6b7

    That being said, you should still be able to override that template. Would you mind sharing your template file so I can let our developer take a look at it?

    Please let me know!

    Best,

    Thread Starter Chris Hardie

    (@chrishardie)

    Thanks for your response. Here’s the template file in use:

    
    <?php
    
    add_filter(
            'body_class',
            function( $classes ) {
                    $classes[] = 'classic';
                    return $classes;
            }
    );
    
    get_header();
    ?>
    
    <div id="content" class="span8" role="main">
            <?php
            while ( have_posts() ) :
                    the_post();
                    ?>
                    <article id="post-<?php the_ID(); ?>" <?php post_class( 'hnews item' ); ?> itemscope itemtype="https://schema.org/Article">
                            <header>
                                    <h1 class="entry-title" itemprop="headline">Business Directory</h1>
                            </header><!-- / entry header -->
                            <div class="entry-content clearfix" itemprop="articleBody">
                                    <?php the_content(); ?>
                            </div><!-- .entry-content -->
                    </article><!-- #post-<?php the_ID(); ?> -->
                    <?php
            endwhile;
            ?>
    </div>
    
    <?php get_sidebar(); ?>
    
    <?php
    get_footer();
    
    Plugin Support Garret L

    (@garret1996)

    Hi @chrishardie

    Thanks for sharing that.

    Could you first see if switching to a default theme such as 2020 will display the content? I’d like to rule out a theme issue before moving forward.

    Please let me know!

    Best,

    Thread Starter Chris Hardie

    (@chrishardie)

    Switching to Twenty Twenty-One does display the content of the directory listing as expected with 6.2.x versions of the plugin. So, any suggestions for how to troubleshoot what changed in the plugin that would cause our custom theme and template to start behaving differently?

    Plugin Support Garret L

    (@garret1996)

    Hi @chrishardie

    I will have to ask our developer for more information about that update and what could have caused this.

    As mentioned, these changes here from v6.2 did cause some issues with themes by switching to use the theme h1 instead of our own tags. https://github.com/Strategy11/business-directory-plugin/commit/c555c2b81add0568d0542adc03a7cb4114d2c6b7

    By chance, what theme are you using?

    Best,

    Hi @chrishardie

    We have been dealing with the same issue as well. We cannot update to v6.2 because it causes the content for a single directory listing to NOT display. We have been going back and forth with Garret, but he insists that it is NOT a problem on their end because it displays properly with a default theme. I have been working with the developer of our theme (Customizr) to try and figures this out, but this is not high on their priority list, so it could take some time to figure out. I have also tried breaking down their code on my end, but because I lack the time necessary to do this task, it is frustrating. I’m hoping Garret will realize this is a much larger problem than he is willing to admit to. Sad part, I have enjoyed this plugin and utilized for many years, now I feel as though we’ve been left out in the cold with this new v6.2.

    Thread Starter Chris Hardie

    (@chrishardie)

    @garret1996 We’re using a child theme of Largo.

    Plugin Support Garret L

    (@garret1996)

    Hi @chrishardie

    Thank you for sharing that.

    Our developer is out this week so I will have to ask our developer about this when they are back in next week.

    I will let you know as soon as I get more information on this. Thank you for your patience in the meantime!

    Best,

    Plugin Support Garret L

    (@garret1996)

    Hi @chrishardie

    Thanks for your patience on this. Our developer has been trying to replicate this issue but hasn’t had any luck so far.

    Is it possible you could send over a copy of your theme for our developer to take a look at? You can send that to Garret(@)strategy11.com if so.

    Best,

    Thread Starter Chris Hardie

    (@chrishardie)

    Thank you, I’ve emailed you a copy of the child theme files.

    Plugin Support Garret L

    (@garret1996)

    Hi @chrishardie

    Thanks for getting back to me so quickly!

    Unfortunately, I don’t see it in my inbox or spam folder. I did include parentheses around the @ symbol to avoid future spam to my email, so you may need to remove those.

    Could you please double-check you removed the parentheses?

    Best,

    Plugin Support Garret L

    (@garret1996)

    Hi @chrishardie

    We released an update last week to address this issue.

    Could you please confirm if that update fixed the issue for you?

    Best,

    Thread Starter Chris Hardie

    (@chrishardie)

    I tried upgrading to 6.2.8 today and the single business directory entry pages are still missing the content/details from the entry. Reverting to 6.1 restores the intended functionality.

    Let me know if you need anything else for now to help troubleshoot.

    Plugin Support bobbied

    (@bobbied)

    Hey @chrishardie

    Sorry that this problem came back. If you remove the custom code and use a default WordPress theme are you still seeing the issue?

    We’d like to get to the bottom of this.

    Please contact us with a link to this forum thread here:?https://businessdirectoryplugin.com/contact/

    Plugin Support bobbied

    (@bobbied)

    @chrishardie A teammate was able to reproduce this problem so I’ve submitted a bug report for the issue. Thanks so much for reporting this!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Upgrade from 6.1 to 6.2.x breaks single directory entry display’ is closed to new replies.