Forums

Where Do I Add < ?php wp23_related_posts(); ? > (9 posts)

  1. spunkycloud
    Member
    Posted 1 year ago #

    I am using WordPress 2.3.2 and I have no idea where to add the code: < ?php wp23_related_posts(); ? >

    Does that go in my templates.php file? If so, where do I add it? If not, what is the correct file to add it to and where in that file? Thank for your help.

  2. stanch
    Member
    Posted 1 year ago #

    depending on what you want, in my case, i add it on the bottom of <?php the_content; ?>

  3. leonardorb
    Member
    Posted 1 year ago #

    spunkycloud,

    you can put this in the single page (if you want to show the related with the content of one post per time), after the post tag 'the content(...)'.

    ;)

  4. dupola
    Member
    Posted 1 year ago #

    Add to your single page(if you want to show it on there) like this:
    <?php if ((function_exists('wp23_related_posts')) and is_single()) { ?>
    <div class="related_posts">
    <?php wp23_related_posts(); ?>
    <?php } ?></div><!--end related post-->
    </div>

  5. mokkori
    Member
    Posted 1 year ago #

    I got this error
    Fatal error: Call to undefined function wp32_related_posts() in /home/mokkori/public_html/blog/wp-content/themes/damai/single.php on line 27

    why is this?

  6. wolfgrrl
    Member
    Posted 1 year ago #

    I've got this working in my posts, but it does not show up in my feeds. I run through FeedBurner - does it work with FeedBurner? Thanks

  7. fairwells
    Member
    Posted 1 year ago #

    I can't get it to work in my posts. I don't have php content in my single.php file. I just have div="content"

    Where exactly do I put the code?

  8. oneppo
    Member
    Posted 1 year ago #

    I can get this to appear, but it makes my right column fall under the content. Is this a really wide form or something?

  9. oneppo
    Member
    Posted 1 year ago #

    yeah this thing doesn't work

Topic Closed

This topic has been closed to new replies.

About this Topic