Automatically generate title-tag
-
Hello SEO-friends,
I got problems with a YOAST update and hope, that someone could help me ??
My WordPress-Website includes thousand of pages of descriptions of famous persons. These pages are virtual and base on only one static page, which is connected to a mysql database. The URls are looking like this: https://www.mydomain.com/page/?id=1505_John-Wayne
To generate the title-tags and descriptions for each person, I use YOAST-SEO-plugin, which I modified this way:if (is_page(number of the static page)) {
$id = $_GET[‘id’];
include(“config.inc.php”);
if ( $connection )
{
$SQLString = “SELECT id, name FROM Persons WHERE id = ‘$id'”;
$result = mysqli_query($Verbindung, $SQLString);
$row = mysqli_fetch_array($result);
$content = str_replace( $this->debug_marker( false ), $this->debug_marker( false ) . “\n” . ‘<title>’ . $field[‘name’] . ‘ | mydomain.de</title>’, $content );
…This worked fine for years. Because of my very strong modifications I couldn’t update the plugin. But now it seems, that the newest WordPress-Version 4.8 isn’t longer compatible to my old YOAST-Plugin.
Is there another way to generate those meta-head-informations automatically, without the YOAST-SEO-plugin? Does anyone have the same problem? Or is there a way to save custom plugin-modifications, when updating, may be like a wordpress child theme?
Thank you very much in advance!
- The topic ‘Automatically generate title-tag’ is closed to new replies.