man5 Posted April 13, 2014 Share Posted April 13, 2014 Normally you would add unique meta tags(title, description) for each page of the website. However, what if it's a user based website where a user can add posts with title and description? Is it better to add user's title/post name in the meta tags or keep it as your own? Quote Link to comment https://forums.phpfreaks.com/topic/287747-whats-the-best-method-to-showing-meta-tags-on-a-user-based-website/ Share on other sites More sharing options...
QuickOldCar Posted April 14, 2014 Share Posted April 14, 2014 Do as theirs, and if they never set theirs use yours. Quote Link to comment https://forums.phpfreaks.com/topic/287747-whats-the-best-method-to-showing-meta-tags-on-a-user-based-website/#findComment-1476041 Share on other sites More sharing options...
man5 Posted April 14, 2014 Author Share Posted April 14, 2014 Yes that works. Now here is a weird problem that just came up. Say I have a page with 10 posts. Each post has it's own page with their own meta title and description. If i click on any one of the posts and go to their page; their relative meta tags should be indexed. However that's not the case. Meta tags of a different post are indexed instead. If it only when I refresh the page that the relative meta tags show up. This is not happening on any other sections of the website. Only with with those posts. Can anyone tell me why this might be happening and how I can fix it? Quote Link to comment https://forums.phpfreaks.com/topic/287747-whats-the-best-method-to-showing-meta-tags-on-a-user-based-website/#findComment-1476127 Share on other sites More sharing options...
QuickOldCar Posted April 15, 2014 Share Posted April 15, 2014 Is it fetching the meta by something that has a unique value like an id? Trying to add from an array a previous query and into a new loop? Too hard to possibly know why unless see some sort of code, maybe even more questions. Quote Link to comment https://forums.phpfreaks.com/topic/287747-whats-the-best-method-to-showing-meta-tags-on-a-user-based-website/#findComment-1476185 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.