October 19, 2012 at 12:56 pm #17174
I don’t know, what went wrong, but there seems to be some wrong characters within my code. I don’t know, where I have changed what :-(
Could you please let me know the file names, where I need to take a look to correct this?
At my sitemap/archive page it shows me this:
Firebug shows some weird code for this part:
The source code of this site, shown in browser:
When I take a look at the loop-index.php file, I cannot figure out what may be wrong:
Looks quite normal? Is there another file that could cause this error?
My site is currently the same as the demo site here.
My site cannot go online, sorry, but hope this helps. Just need to know the file names, where I can check this.
Thanks.October 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.