Title: Change Directory Button From Sample Page
Last modified: September 14, 2018

---

# Change Directory Button From Sample Page

 *  Resolved [semperaye](https://wordpress.org/support/users/semperaye/)
 * (@semperaye)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/change-directory-button-from-sample-page/)
 * 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](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/change-directory-button-from-sample-page/#post-10689392)
 * Hi [@semperaye](https://wordpress.org/support/users/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 [http://imageshack.us](http://imageshack.us)
   or something similar if needed.
 * Please let me know.
 *  Thread Starter [semperaye](https://wordpress.org/support/users/semperaye/)
 * (@semperaye)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/change-directory-button-from-sample-page/#post-10689429)
 * 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 7 years, 8 months ago by [semperaye](https://wordpress.org/support/users/semperaye/).
 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/change-directory-button-from-sample-page/#post-10689484)
 * 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: [http://businessdirectoryplugin.com/support-forum/faq/how-to-check-for-plugin-and-theme-conflicts-with-bd/](http://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: [http://businessdirectoryplugin.com/contact/](http://businessdirectoryplugin.com/contact/)
 *  Thread Starter [semperaye](https://wordpress.org/support/users/semperaye/)
 * (@semperaye)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/change-directory-button-from-sample-page/#post-10689508)
 * 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](https://wordpress.org/support/users/semperaye/)
 * (@semperaye)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/change-directory-button-from-sample-page/#post-10689516)
 * ^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](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/change-directory-button-from-sample-page/#post-10689629)
 * 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.

 * ![](https://ps.w.org/business-directory-plugin/assets/icon-256x256.png?rev=2901888)
 * [Business Directory Plugin - Easy Listing Directories for WordPress](https://wordpress.org/plugins/business-directory-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/business-directory-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/business-directory-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/business-directory-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/business-directory-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/business-directory-plugin/reviews/)

## Tags

 * [sample page](https://wordpress.org/support/topic-tag/sample-page/)

 * 6 replies
 * 2 participants
 * Last reply from: [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/change-directory-button-from-sample-page/#post-10689629)
 * Status: resolved