Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter doppyo

    (@doppyo)

    Works flawlessly, thanks a lot, Michael!

    Forum: Fixing WordPress
    In reply to: wordpress homepage

    wp-content->themes->yourtheme->index.php

    Hi Tracy,

    When you copy/paste your code into your post, be sure to paste it into the HTML tab next to the VISUAL tab. I tried your code and it works just fine.

    Forum: Fixing WordPress
    In reply to: Read More Problem
    Thread Starter doppyo

    (@doppyo)

    Thanks for all the support buddha trance. I finally found(absolutely randomly) the way to get all this working. The problem was the function bloginfo(). I tried to do the same with get_bloginfo() and voilà, everything’s working perfectly.

    Here’s the code I put in header.php so I don’t have to type this ever again:

    <?php global $path;
    $path = get_bloginfo('template_url');
    ?>

    and the code I put into the_content():

    <?php the_content('<img src="'.$path.'/images/readmore_big.gif" class="alignright" />'); ?>

    Thanks again for helping me out!
    Ben.

    Forum: Fixing WordPress
    In reply to: Read More Problem
    Thread Starter doppyo

    (@doppyo)

    Thanks a lot for the information, I did replace stylesheet_directory with template_directory in my files. I tried :

    <?php $path = bloginfo('template_directory');
    the_content('<img src="' . $path . '/images/readmore_big.gif"
    class="alignright">'); ?>

    But it did not work either, unfortunately. I did try your second suggestion but I fear that I haven’t put it properly into the code. I’m quite only an amateur when it comes to php. Here’s what I did with your second suggestion :

    <?php the_content('<img src="<?php include (TEMPLATEPATH . \'/images/readmore_big.gif\'); ?>" class="alignright">'); ?>

    Didn’t work either, many thanks for your info though. Is it even possible to do what I want to do?

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