Skip Navigation

Tags not working properly?

Travel Forums System Talk Tags not working properly?

1. Posted by Goannaray (Full Member 14 posts) 2y

Hello again,

Trying to do some more fiddling, and found that atleast one of my tagging systems isn't working properly.

When I previously changed a fair few things with my blog layout (http://goannaray.travellerspoint.com), I tagged all the appropriate Tassie entries with '2_toddlers_in_winter_tasmania!?' and got it working so that when I clicked on that tag, only those tagged as such, would then be shown.

Now, when I click on that tag, it's showing every entry I've ever written in the blog. Even if I never entered that as one of the entries tags.

For example, if I click on 'campervan'... only those entries with the tag 'campervan' will show.
But if I click on '2_toddlers_in_winter_tasmania!?'.... every entry I've ever written into the blog appears. Including those not having this specific tag. ie, those entitled "Weekend Getaway 1: ... ... ..." which do not contain the mentioned tag.

How do I fix this problem? Any ideas greatly appreciated!

Thanks.

2. Posted by Peter (Admin 5807 posts) 2y

I've had a look in the database and there are 36 entries tagged with that tag. Which is just about all your entries, though not quite. How many should be showing with that tag?

When you go in to edit the entries that shouldn't have that tag, do you see the tag there as something that can be removed?

3. Posted by Sander (Moderator 4834 posts) 2y

There's definitely a bug somewhere: The tag isn't showing up underneath Wkend Getaway 1: South West WA - Planning, Camping, Travel, yet that's still the first entry on the tag page. That page also shows that there's 43 results, not 36.

4. Posted by Peter (Admin 5807 posts) 2y

Ok yes, you're quite right. I've found a couple of bugs working in tandem here.

Firstly, the worst one - if you specified any old string that wasn't a tag at all it would return all your entries. Eek.

Secondly, it wasn't kicking up a fuss about that question mark in your tag like it should have.

I've now fixed both of these on the display side. The result is probably not what you want, but it is the correct thing - the url will now say it can't be found. The reason for this is the question mark is special in urls and is reserved. You can see in the url of this page for example that the question mark is where extra variables related to the page are provided (?thread=xxx)

To ensure your page isn't entirely messed up and to avoid you having to manually do this for all your entries, I fixed that tag and just removed the question mark.

I hope that helps!

5. Posted by Goannaray (Full Member 14 posts) 2y

Thanks!!

That works a lot better now. Much appreciated :)

Post 6 was removed by a moderator