Jump to content

Showing the same Title & Description for all pages


Recommended Posts

I have a article directory site that shows the same title (my main site title)on all the articles. Is there a way to code the script to show the title of the article from each page?

 

I think the strategy is simple, assuming your post title of the article is saved in the mysql database. You can use PHP script to pull out the title tags from the database for a specific URL. Of course you can grab the URL of the page using PHP also. I think this is possible and simple.

 

For meta description, you may not need to have one, because search engines may automatically return a relevant snippet in the search engine results. Of course, you need substantial content to return related snippets. If your page does not have a content like pages full of images, you can also use PHP script to generate meta description which you can also save in the mysql database.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.