• Resolved semperaye

    (@semperaye)


    Why does the directory button take clickers to the /sample-page url? Can we change this to whatever page we have the shortcode on? It’s not very good for SEO as is. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Hi @semperaye,

    Sorry that you ran into issues here!

    Can you tell me a bit more?
    – What version of WP are you running here?
    – What exact version of BD? (number, please)
    – Are you talking about our demo site? I’m not sure which Directory button you might be referring to…
    – Can you use a screenshot to help explain it more clearly? Use https://imageshack.us or something similar if needed.

    Please let me know.

    Thread Starter semperaye

    (@semperaye)

    Hi. I’m using the very latest of both WP and BD as of today. I don’t think a screenshot is necessary. There is only one “Directory” button, and when you click it, it loads yoursiteurl.com/sample-page despite the fact that I have the shortcode on my home page and no /sample-page exists in my lists of pages.

    I’ve just tested out the demo site and it doesn’t have this bug, the directory button loads business-directory/….. so I guess this is not intended behavior? I do not wish to list my site here but I’d be happy to email it to you if it’s needed.

    Thank you!

    • This reply was modified 6 years, 2 months ago by semperaye.
    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Well, the behavior of that button should be to take you to the page that is the one where the main shortcode [businessdirectory] exists on. You can only have that shortcode on one page in your site.

    Is that the issue? (Two pages with that)?

    In your example above, I’m assuming /sample-page is the page where the shortcode is supposed to be (since you’re not listing the site, which might help). Is that the only page with it? Or is it an entirely different page? Or is that the literal URL you see?

    None of those are normal for the directory–as you noted in the demo. The Directory button should return you to the main directory page.

    You may have a conflict going on, although the first cause seems more likely.

    Here is an article about how to test for theme and plugin conflicts with Business Directory, which may help pinpoint the issue: https://businessdirectoryplugin.com/support-forum/faq/how-to-check-for-plugin-and-theme-conflicts-with-bd/

    Failing that, contact us here with a link to this forum thread so we can continue the discussion: https://businessdirectoryplugin.com/contact/

    Thread Starter semperaye

    (@semperaye)

    Thank you for the reply. I only have the shortcode on my home page (front page), I do not even have a /sample-page. I mean…there was one when I installed wp, but I deleted it right away, and it’s been deleted and emptied from the trash for some time.

    Maybe the bug is that the plugin doesn’t know how to be placed on the front page of a site, so it links to the sample page by default?

    Thread Starter semperaye

    (@semperaye)

    ^Yup. Thats what it was. The plugin doesn’t like being on the front page because there is no /slug. Solved it by creating a /directory page and putting the code there.

    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Ah, yes…that issue.

    Turns out that’s not a bug. It’s the way some themes handle the redirect from their main page to other pages in the site. Not all themes have that issue, just certain ones which is weird.

    We’ve tried various things to work around it but none ever really addressed it well. The solution is to put it on a page like /directory. Glad you got it working.

    Please let me know if you have any other questions or issues!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change Directory Button From Sample Page’ is closed to new replies.