Title: Linknotes and WordPress 2
Last modified: August 18, 2016

---

# Linknotes and WordPress 2

 *  [nmallory](https://wordpress.org/support/users/nmallory/)
 * (@nmallory)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/linknotes-and-wordpress-2/)
 * Has anyone looked at this plugin since the upgrade? It appears to be messing 
   up my formatting, which you can see [here](http://nmallory.exit-23.net/20060221/the-outsourcing-of-national-security#more-669).
   When I look at the post code, it clearly has the blockquote ending after the 
   code for the linknote and a p before the next paragraph, but as you can see that’s
   not what’s occurring.
 * I’ve been looking at the plugin code but it’s a bit beyond my php & wp plugin
   skill. I’m not sure what has changed that is causing the rest of the post to 
   lose it’s formatting.
 * I’m hoping someone can help. I’m going to hate digging through every post trying
   to find all the linknote references, if I can’t get it to work.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [nmallory](https://wordpress.org/support/users/nmallory/)
 * (@nmallory)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/linknotes-and-wordpress-2/#post-345388)
 * Hi, me again.
 * I’ve narrowed it down, I think. I’m having trouble interpretting this line:
    `
   $text = preg_replace_callback('/ :" # start ([^"]+)? # $desc s? (?:(([^)]+))(?
   ="))? # $title ": (S+b)? # $url (/)? # $slash ([^w/;]*) # $post (?=s|$) /Ux',
   array(&$this, "linkd"), $text);
 * The rest of the function is:
    `  if ($this->are_links) { for ($i=1; $i <= $this-
   >count; $i++) { $links .= $this->items[$i]; }
 *  $linknotes = str_replace('%items%', $links, $this->notes_code);
    $text = $text.
   $linknotes; }
 *  return $text;
    }
 * If you want to know what the linkd function is:
    ` function linkd($m) { list(,
   $title, $text, $url, $slash, $post) = $m; $this->count++; $this->are_links = 
   true;
 *  $itm_replace = array(‘%noted-id%’, ‘%url%’,’%title%’,’%desc%’, ‘%desc_text%’,‘%
   return%’);
 *  $desc = $text;
    if ($text && $url) $desc = str_replace(‘%desc_text%’, $text,
   $this->desc_code);
 *  $itm = array( “linknote-$this->id-$this->count”, $url, $title, $desc, $text,“#
   noted-$this->id-$this->count”);
 *  $this->items[$this->count] = str_replace($itm_replace, $itm, $this->item_code);
 *  $at_title = strip_tags($title.$desc);
    return “<sup>id.’-‘.$this->count.”‘;\”
   id=\”noted-$this->id-$this->count\” title=\”$at_title\”>[$this->count]
   </sup>”;
   }’
 * I can’t see why it would strip the html tags or displace them.
 *  Thread Starter [nmallory](https://wordpress.org/support/users/nmallory/)
 * (@nmallory)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/linknotes-and-wordpress-2/#post-345677)
 * I decided to take it out. It really appears to only be a problem with posts written
   after the conversion to WP2.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Linknotes and WordPress 2’ is closed to new replies.

 * 2 replies
 * 1 participant
 * Last reply from: [nmallory](https://wordpress.org/support/users/nmallory/)
 * Last activity: [20 years, 2 months ago](https://wordpress.org/support/topic/linknotes-and-wordpress-2/#post-345677)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
