Hi @amitaigivertz,
Sorry that you ran into issues here!
I’m not sure if I understand what you mean. If I look on the demo here: http://businessdirectoryplugin.com/demo
I see links like this one:
<a href="https://businessdirectoryplugin.com/business-directory/621/untitled-listing" target="_self">Whole Foods Market</a>
Which doesn’t involve JavaScript at all. Perhaps there’s something adding script to your site? Have you tried a conflict test (and flushed your cache in between tests?) to see if that helps?
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/
Please let me know.
Thread Starter
AmiG
(@amitaigivertz)
My issue is not one of possible conflicts but functionality (or more properly, my limited skill set). As it happens, the example you gave in the demo illustrates the problem exactly. The post title field ‘Name’ (not the excerpt but the listing itself) is self-referencing looping back to the listing (https://businessdirectoryplugin.com/business-directory/621/untitled-listing). I want to point the link to a separate URL, the listings real website perhaps.
Is that any clearer? Here is an example of what I want, minus the funky browser tab:
https://goo.gl/eYo8n0. See the post title and name fields are linked to the destination page. It is the browser tab that is my problem.
-
This reply was modified 8 years, 11 months ago by
AmiG.
Hi @amitaigivertz,
Ah–I understand a little better now.
Yes, that is self-referencing…on that one page. 🙂 We use the same logic to output the content for that field whether it’s on the list view or the detail view. That is why it looks to be “self referencing” when in fact, it’s just the same field in two places that does the same thing. The title field links to the detail view of the listing, that’s all. We could optimize that for the detail view to NOT be a link, it’s just not that way today.
Does that make more sense?
Thread Starter
AmiG
(@amitaigivertz)
I am afraid it makes no sense at all 🙂
Hi @amitaigivertz,
Apologies for not giving a clear explanation.
Let’s try it again…
Our directory has two “views”: list and detail.
Our list content looks like this here: https://businessdirectoryplugin.com/business-directory/
It’s like the “excerpt” of WP posts
Our detail content looks like this here: https://businessdirectoryplugin.com/business-directory/621/untitled-listing/
It’s like the actual post itself in WP.
We display the fields in BOTH views the exact same way. So our title field in the list view is a link to the detail page of the listing. That makes sense…yes?
But we use the same code to output the title field in the DETAIL page too…so it shows up with a link to…itself! That’s a bit weird, and we have added it to the list to change in the future, but as far as bugs go, it’s not super critical.
Does that make more sense?