[Resolved] Tag page behaves like a page with the same ID as the tag
It seems that wherever the ID of my tags, coincides with the ID of any of my pages, the tag page behaves like the given page. I.e. the WP header is the same as that page, and thus the navigation item of that page is marked as active.
I’m using my own custom theme, so there might be something I’ve missed there, though the event and tag pages are formatted using the events administration.
I’ve set the event pages and location pages to use the “page.php” instead of “post.php” (as I don’t have a post.php). But I’m unable to specify the same for tag pages – could this be the issue?
Anyways, thanks in advance for any support.
just to confirm, is this working properly using default twenty twelve theme? also, have you tried Events > Settings > Pages > Event Tags > Tags page ?
I’ve tried the twentytwelve theme and e.g. the canoninal link still seems to point to the page with the same ID as the event tag.
The same goes when using a tags page, although when using the tags page, the correct page is marked as active in the menu.
hmm, do you also have sample links for us to see and analyze?
This is the tag page coinciding with the page http://184.108.40.206:10013/kalender/tags/foraeldre/
It coincides with the page Vennerne, but they have nothing to do with each other – other than that they share an ID.
Right now the twentytwelve theme is active, without any changes to the default settings. The tag-page is set to No Tags Page, but setting this to e.g. “Tags” will make that page the active, although the canonical link in the header will still point to the “Vennerne” page.
Do you have any plugins or modifications running that change the default permalinks behavior? A “No Category” plugin, or something like that?
I havn’t. I have turned the event categories off in the Events Manager settings, but mostly as a means to try to solve the problem at hand. In my own theme I had a filter in my functions.php file that marked the parent of child menu items, as active whenever the child was active. This shouldn’t impact the twentytwelve theme though.
When you say that the two pages share an ID do you mean they share the same page slug, or that literally have the same ID number in WP admin?
Litterally have the same ID number – although different “types” of ID. The tag ID of e.g. “Foraeldre” is 10, and the page ID of “Vennerne” is 10 as well. The other example I’ve found is the tag ID of “Storspejderne” is 5, which makes the canonical link (and current active menu item) point to the page “Nyheder” which has the page ID 5.
So yes, litterally the same ID number in WP admin.
I think that’s your problem – every post, page or custom post type should have a unique ID.
It looks like you have a new blog, in which case the easiest fix is probably to delete the database and reinstall WordPress. It looks to me like something went wrong with your database.
- The topic ‘[Resolved] Tag page behaves like a page with the same ID as the tag’ is closed to new replies.