Bump: I am seeing this issue too.
I am using the shortcode in a child theme of Genesis Framework. In the attached screenshot, “29” is the number of views of this post. Even though in the theme file I have the shortcode directly after “Views:”, the actual count returned by the shortcode shows up outside of the ‘p’ element that it should be in.
https://drive.google.com/file/d/0B8_RAAC1wiDrNlQ3WHZQMG1aWFU/view
-
This reply was modified 7 years, 5 months ago by Collin.
-
This reply was modified 7 years, 5 months ago by Collin.
I added a link to a ScreenShot to clarify my problem.
The wrong placements I have marked in red, and the placements corresponding to the positions of the shortcodes in the text green.
https://www.dropbox.com/s/dls3znjjn94eczk/WP_PIWIK_SHORTCODE_II.png?dl=0
The issue was solved, the fix will be available within ~2 days.
If this is urgent, you can fix it manually:
– Open classes/WP_Piwik/Widget/Post.php
– Go to line 30:
echo isset($response[$this->parameter['key']])?$response[$this->parameter['key']]:'<em>not defined</em>';
– Replace line 30 by:
$this->out(isset($response[$this->parameter['key']])?$response[$this->parameter['key']]:'<em>not defined</em>');
-
This reply was modified 7 years, 5 months ago by braekling.
Perfect! That manual fix works for me. Thanks for looking into this so quickly, and for the awesome plugin!
Thank you. Me too.
For the sake of completeness, it would still be good that the number would be formatted with the thousands separator.