Neil Hall
Forum Replies Created
Viewing 8 posts - 76 through 83 (of 83 total)
Viewing 8 posts - 76 through 83 (of 83 total)
Hi Paolo
I understand your explanation with regard to the second part of my question. And to follow on from there, if we do have a tag with the same name (but different slugs) is it possible to have a solution where if a user clicks on a tag that it displays ALL posts for the Tag Name.
With regard to the first part of my question how and why does it work in this way? I did a brief test on your demo system and it has the same problem:-
I have been experimenting by using the Tag Keywords, and have set up 4 posts that all have the same Tag Keyword – Tag1
Three of these Posts are in ‘Places’ and have different locations – Rotterdam, Aylesbury and Oxford. The 4th post is in ‘Bars’with a location – Rotterdam
On the listing-detail page Tag1 is listed in the xxxxx Tags: for each of the above and is clickable.
The problem that I am seeing is that when I click on ‘Tag1’ all it does is display the posts for Tag1 in the specific location that the original post was in.
urls for each Tag1 is as follows:
/places/tags/netherlands/zuid-holland/rotterdam/tag1/
/places/tags/united-kingdom/buckinghamshire/aylesbury/tag1/
/places/tags/united-kingdom/england/oxford/tag1/
/bars/tags/netherlands/zuid-holland/rotterdam/tag1-1/
Is this normal? I would expect that if you click on a Tag1 it would then search for all posts that have the Tag1 and display them.
Is there a way of achieving this?
Best Regards
Neil
Hi Stiofan
Many thanks, that seems to work fine now. Great work.
Hi Stiofan
So which files would I need to edit?
Best Regards
Neil
Hi Giri
That seems to work. I’ll carry on testing just to make sure.
Thank you for your help. It is much appreciated
So just to confirm, your code does not resolve the problem
Hi Giri
I assume that the code should go in the themes functions.php. Is this correct.
When I do this it seems to have no effect.
Best Regards
Neil
Get the latest news, tips, and exclusive content directly in your inbox.
Confirm your email address, and instantly receive the discount code :)