Title: [Plugin: wp-mpdf] Wrong output
Last modified: August 20, 2016

---

# [Plugin: wp-mpdf] Wrong output

 *  Resolved [—](https://wordpress.org/support/users/zilverdragon/)
 * (@zilverdragon)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-mpdf-wrong-output/)
 * Hi guys.
 * The plugin’s HTML output is wrong because it uses an ID instead of a class in
   order to identify the link:
    `<a href="http://example.com/?p=10&output=pdf"> 
   My Text</a>`
 * So, if you have the pdf link showing within a loop, there are multiple IDs with
   the same value “pdfbutton”.
 * The solution is to convert the id to a class (class=”pdfbutton”) or even better,
   converting it to a class and adding an unique id:
    class=”pdfbutton” id=”pdfbutton-
   XX”, where XX is the post ID.
 * As a side note: It would be useful for us to have a github repo for the plugin
   so we can fork, edit and push-request the code, that way we can contribute to
   it too.
 * Thanks for the plugin.
 * Cheers.
 * [http://wordpress.org/extend/plugins/wp-mpdf/](http://wordpress.org/extend/plugins/wp-mpdf/)

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

 *  Plugin Author [fkrauthan](https://wordpress.org/support/users/fkrauthan/)
 * (@fkrauthan)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-mpdf-wrong-output/#post-2872816)
 * Hi,
 * Fixed id to class in the next version (2.9.3) which should appear soon.
 * The problem is wordpress dosen’t support github. I have a svn repo from wordpress
   and i have to tag a version to publish it to the plugin repository.
 * Florian
 *  Plugin Author [fkrauthan](https://wordpress.org/support/users/fkrauthan/)
 * (@fkrauthan)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-mpdf-wrong-output/#post-2872858)
 * At the moment I migrating my plugin to github. The github url would be [github.com/fkrauthan/wp-mpdf](https://github.com/fkrauthan/wp-mpdf)
 *  Thread Starter [—](https://wordpress.org/support/users/zilverdragon/)
 * (@zilverdragon)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-mpdf-wrong-output/#post-2872862)
 * Great, and thanks for the credit.

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

The topic ‘[Plugin: wp-mpdf] Wrong output’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-mpdf.svg)
 * [wp-mpdf](https://wordpress.org/plugins/wp-mpdf/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mpdf/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mpdf/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mpdf/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mpdf/reviews/)

## Tags

 * [class](https://wordpress.org/support/topic-tag/class/)
 * [id](https://wordpress.org/support/topic-tag/id/)
 * [link](https://wordpress.org/support/topic-tag/link/)

 * 3 replies
 * 2 participants
 * Last reply from: [—](https://wordpress.org/support/users/zilverdragon/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-mpdf-wrong-output/#post-2872862)
 * Status: resolved