Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

Adding a Flattr link to the post footer / strange behaviour with links


  #1  
Old Jul 11, 2012, 06:26 AM
Fux
 
142 posts · Apr 2009
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 put the last href there as a test. The output is fine except that the '.' with the href links to the post (probably the_permalink?)

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"]
Result: Front-end displays
Code:
" type="compact"]
While this (static link)

Code:
[flattr url="http://www.mywebsite.com" type="compact"]
results in nothing, no button, nada.

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() ?>
Neither does this

<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>
results in this

Code:
http://www.mywebsite.com/postpermalink/<?php the_permalink(); ?>
That does not make sense. To me.

What do you think?
  #2  
Old Jul 11, 2012, 08:05 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
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:
<?php bfa_widget_area('name=Flattr'); ?>
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Jul 11, 2012, 08:57 AM
Fux
 
142 posts · Apr 2009
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?
  #4  
Old Jul 11, 2012, 11:46 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
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?
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #5  
Old Jul 12, 2012, 04:10 AM
Fux
 
142 posts · Apr 2009
I understand. I will try to use a widget area here. Thank you.

Do widget areas "drag" performance in any way?

Last edited by Fux; Jul 12, 2012 at 04:13 AM.
  #6  
Old Jul 12, 2012, 09:11 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
I haven't noticed and performance hits from adding a widget area.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange behaviour on with category posts justshopandgive Center area post/pages 1 Mar 14, 2011 01:11 PM
Strange behaviour on search results title justshopandgive Atahualpa 3 Wordpress theme 7 Aug 26, 2010 01:01 PM
[SOLVED] Strange Menu1 Behaviour Llamalad Page & Category Menu Bars 2 Aug 20, 2010 08:22 AM
[SOLVED] Category Menu strange behaviour! NeilC Page & Category Menu Bars 4 Jul 29, 2010 11:06 AM
Adding a link to the Footer of my post Hamlet Post-Kicker, -Byline & -Footer 2 May 21, 2009 07:50 PM


All times are GMT -6. The time now is 11:46 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.