October 19, 2012 at 12:56 pm #17174October 19, 2012 at 1:09 pm #94440
Ah I got it :-/
I’ve disabled all my plugins and then re-activated one by another and … tatataa … it’s actually caused by a paid plugin “Content Reloaded” from Codecanyon.
:-( Will contact the author of it.October 19, 2012 at 1:51 pm #94441
the author lets me know, that this is the reason, because »the <?php the_title(); ?> is used in the “title” attribute and ’cause the “title” attribute have HTML tag inside it.«
The part of CORONA’s loop-index.php
" rel="bookmark" title="<?php _e('Permanent Link:','avia_framework')?>
<?php the_title(); ?>"><?php the_title(); ?>
should be like this:
title="<?php printf( esc_attr__( 'Permalink to %s', 'your-text-domain'
), the_title_attribute( 'echo=0' ) ); ?>"
But within this I haven’t the part for the “avia_framework functionality”.
Could you please let me know, how to write this part of code for the loop-index.php in this case?
Thanks a lot, appreciate!October 20, 2012 at 7:52 am #94442
You can use following code:
title="<?php printf( esc_attr__( 'Permalink to %s', 'avia_framework'), the_title_attribute( 'echo=0' ) ); ?>"
PeterOctober 20, 2012 at 2:00 pm #94443
But the problems remains the same; I’m not really sure, if I have changed the code right, because my PHP is still a “try&error” play ;-)
It looks like the first screenshot above.
Here a Screenshot with Firebug (my site is still offline):
1. there is a strange code part after the alt tag:
2. the img src tag is not closed and conflicts in some way with the Permanent Link thing …
The code within my loop-index.php is now this, perhaps I have made some mistakes with these changes?
Thanks!October 22, 2012 at 3:38 am #94444
In the code shown on pastie.org, you’re missing a semi-colon after the get_permalink.
You have this:
<?php echo get_permalink() ?>
And it should be this:
<?php echo get_permalink(); ?>
Try that and see if it corrects the issue.
MyaOctober 22, 2012 at 11:53 am #94445
thanks, Mya, but unfortunately, this has no effect.
I have now this code in the loop-index.php: http://pastie.org/5097716
and it still looks like this:
and in Firebug (site still offline):
Any idea what I can do?
Thanks.October 22, 2012 at 6:34 pm #94446
Try changing the h1 class to use double quotes instead.
Other than this though, I think you may need to look into a hiring a web developer as this is a bit beyond what we should typically handle via support.
Bug fixing custom changes is a bit to particular and if others try following the same threads it can cause issues where the code isn’t fully explained or fleshed out.
The topic ‘Weird code showing post in archive/sitemap’ is closed to new replies.