Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • i found the answer regarding this issue..
    i saw on database and its gave a idea how to solve this ‘featured image/thumbnail’

    add_post_meta(post id, ‘_thumbnail_id’, 55, true);

    _thumbnail_id = post meta ‘key’
    55 = attachement ID.

    Thread Starter xyren

    (@xyren)

    Thanks dude…
    because of that i have an idea…
    so i solve it..

    within the functions of comments..
    it declare the global $id which is replresent the POST id..
    so i declare the global id in my comments.php and same in my comments-form.php

    <?php global $id; ?>
    <?php $id=$post->ID; ?>

    Thanks for helping me…


    Check this link

    for the success i have.. 🙂

    Thread Starter xyren

    (@xyren)

    Thanks for help…

    Its working but still have bug.
    the comments list perfectly…
    but if i add a new comments… still appear in the last query.

    i think its in function of..
    — comment_id_fields();

    which appear in html source
    <input type=’hidden’ name=’comment_post_ID’ value=’49’ id=’comment_post_ID’ />
    the ’49’ is the last query..
    seem will will ’42’ which is the Main query…

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