Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #17174

    Hi,

    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:

    http://pastie.org/5083938

    When I take a look at the loop-index.php file, I cannot figure out what may be wrong:

    <h1 class='post-title'>

    " rel="bookmark" title="<?php _e('Permanent Link:','avia_framework')?> <?php the_title(); ?>"><?php the_title(); ?>

    </h1>

    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.

    #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.

    #94441

    Hi,

    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

    <h1 class='post-title'>

    " rel="bookmark" title="<?php _e('Permanent Link:','avia_framework')?>

    <?php the_title(); ?>"><?php the_title(); ?>

    </h1>

    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!

    #94442

    Hi!

    You can use following code:

    title="<?php printf( esc_attr__( 'Permalink to %s', 'avia_framework'), the_title_attribute( 'echo=0' ) ); ?>"

    Best regards,

    Peter

    #94443

    Thanks, Peter.

    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?

    http://pastie.org/5088934

    Thanks!

    #94444

    Hi,

    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.

    Regards,

    Mya

    #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.

    #94446

    Hi colorit2,

    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.

    Regards,

    Devin

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Weird code showing post in archive/sitemap’ is closed to new replies.