Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mattyroze

    (@mattyroze)

    Yep – the first line isn’t closed and it’s not because of what I copied, it actually isn’t closed in the page itself. Still isn’t. Just not sure how to get the PHP to fix that. Which is my biggest problem – I didn’t make the theme and don’t know much if anything about php so I’m not sure where the problem occurs. Is it in the PHP itself, which has the wrong syntax? I would think this is indeed the reason the thumbs on the page show only in some browsers and not others.

    I mis-pasted the PHP code before. This is what the PHP is for this section:

    <div class="fblock">
    <a href="<?php the_permalink() ?>" <?php $homethumb = get_post_meta($post->ID,'homethumb', true); ?>
    <img src="<?php bloginfo('url'); ?>/wp-content/uploads/<?php echo strtolower($homethumb); ?>.jpg" width="100" height="60" alt=""/></a>

    thanks…

    Thread Starter mattyroze

    (@mattyroze)

    Thanks t-p. Finally started working through the issues, and yes indeed you are right. I got most of the issues fixed. Interestingly, the W3C shows issues with the embed code we’re taking from YouTube for our videos…

    Looking beyond the YT issue, the one thing I can’t quite figure out yet is the proper php syntax to get the images showing, per my initial question above. The error message says I’m using a shorttag where i shouldn’t be:

    <a href="https://www.candygurus.com/2010/12/03/camille-bloch-mousse-serious-eurostyle-chocolates/"
    <img src="https://www.candygurus.com/wp-content/uploads/moussesmall.jpg" width="100" height="60" alt=""/></a>

    I think the “<” before img src shouldn’t be there, but i’m pretty certain this is getting generated by the php, and I’m not sure what i need to change in the php so it doesn’t do this. If someone knows – I’d love the help. In the meantime I’ll keep trolling in hopes I can figure it out…

    The (potentially offending) php code:

    <div class="fblock">
    <a>" <?php $homethumb = get_post_meta($post->ID,'homethumb', true); ?>
    <img src="<?php bloginfo('url'); ?>/wp-content/uploads/<?php echo strtolower($homethumb); ?>.jpg" width="100" height="60" alt=""/></a>

Viewing 2 replies - 1 through 2 (of 2 total)