go41

Simple Tags – Autolink not working

von blogdot admin am 1. Apr. 2010 | 2 Kommentare

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

  1. gold guide wow sagt:

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

  2. see here for info sagt:

    An ecellent post, well planned and constructed. Congratulations!

Schreibe einen Kommentar zu see here for info Antworten abbrechen

Pflichtfelder sind mit * markiert.


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