did you realize that in the latest version of the WordPress plugin Simple Tags the ‚auto link tags into post content‘ is not working?

The solution how to repair is to edit your plugins/simple-tags/inc/client.php

Open this file with a text editor and find (line 118ff):

function autoLinkTags( $content = '' ) {
// Get currents tags if no exists
if ( $this->link_tags == 'null' ) {
$this->prepareAutoLinkTags();
}

// Shuffle array
$this->randomArray($this->link_tags);

by adding (in line 121) this :

$link_tags = $this->link_tags;

Your code here should look like this:
function autoLinkTags( $content = '' ) {
// Get currents tags if no exists
if ( $this->link_tags == 'null' ) {
$this->prepareAutoLinkTags();
}
$link_tags = $this->link_tags; // add in line 121
// Shuffle array
$this->randomArray($this->link_tags);

Now the keywords in your content should be linked to the tags archive.

2 Kommentare Schreibe einen Kommentar

  1. The number of of you guys here play WoW and will reroll either a Goblin or a Worgen inside the new expansion?

Schreibe einen Kommentar


Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.