Adding a Flattr link to the post footer / strange behaviour with links
Hi,
this is in my "FOOTER: Single Post Pages" Code:
%comments('Kommentieren', '1 Kommentar', '% Kommentare', 'Comments are closed')% | %share-this% | %date('j. F Y')% <a href="">.</a> I am having trouble adding a (compact) Flattr link to my post footers. I installed the official plugin and tried the shortcode first. None of these did work Code:
[flattr url="<?php the_permalink(); ?>" type="compact"] Code:
" type="compact"] Code:
[flattr url="http://www.mywebsite.com" type="compact"] So maybe shortcode does not work in the Atahualpa custom fields. Makes sense. But this, the plugin's own PHP-code does not work either: Code:
<?php the_flattr_permalink() ?> <a href="<?php the_flattr_permalink() ?>">Link</a> The main problem being here that the permalink gets added (why?) so the resulting link is somehting like this http://www.mywebsite.com/postpermalink/<?php the_flattr_permalink() ?> My guess is that the problem lies in the fact that all links in these Atahualpa lines somehow get the permalink added for whatever reason. Even this, the official code Code:
<a href="<?php the_permalink(); ?>">permalink</a> Code:
http://www.mywebsite.com/postpermalink/<?php the_permalink(); ?> What do you think? |
Because of WordPress requirements you can't use php in that area with the exception of the php for a new widget area. So I would add the following where you want and add the Flattr widget to that widget area.
PHP Code:
|
Thanks, Larry. Is it possible to support shortcode for these fields in future Atahualpa versions? Or is this kind of shortcode just another way of php?
And can you explain the strange permalink-behaviour? |
Allowing for a new widget areas takes care of that issue and I know no plans to add shortcode support to those fields. I have not idea about the permalink behavior and I am not really sure what you were referring to. Just didn't have the time to investigate. Do you get the same permalink behavior when you use a new widget area?
|
I understand. I will try to use a widget area here. Thank you.
Do widget areas "drag" performance in any way? |
I haven't noticed and performance hits from adding a widget area.
|
All times are GMT -6. The time now is 12:41 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.