• Resolved pedrosimao

    (@pedrosimao)


    Hello,
    First of all, congratulations for this amazing plugin.
    If it is well used, it can be very powerful.

    I am trying to implement a code, where I will have Comment Counts and Comment Forms for specific posts. All this should be inserted in my “home” page.

    Currently your plugin doesn’t allow to insert
    [comment form id=”22″] for example, pointing to a form of a specific post id, as we can have in the loop shortcodes for example.

    Can you give me an example of how to do that?
    I have even tried to create my own plugin, but I still don’t know how to retrive things from a specific post_id.

    I have tried this for example:

    <?php comment_form( $args, $post_id = 22 );?>

    or

    <?php comment_form( $args, 22 );?>

    But it keep on giving me forms from the current post or page.
    If you can help me out, or even update your plugin. I will be eternally thankful.

    Thanks a lot,

    https://ww.wp.xz.cn/plugins/custom-content-shortcode/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello, thank you for the feedback.

    To display a comment form for specific posts, you can put it inside a loop. For example:

    [loop id="22,35,48" orderby="ID" order="ASC"]
        [field title]
        [if comment]
            [comment count]
        [else]
            No comment yet.
        [/if]
        <br>
        [comment form]
    [/loop]

    Please let me know if that works for you.

    Thread Starter pedrosimao

    (@pedrosimao)

    Eliot!
    Thanks very much, you saved my life, and now I am able to deliver my client what he wants, and fast.

    Do you have any tips jar? Paypal?
    It’s really a great plugin!

    Plugin Author Eliot Akira

    (@miyarakira)

    Thanks! I’m glad to hear you’ve found it useful. If you feel like a tip, I put a donation link on the plugin page here, under the author info.

    This was my first plugin, so it’s kind of a pet project that I like to take care of. It’s funny to think, originally it just displayed a single field value, and over time it’s grown to do all kinds of things.

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

The topic ‘Comment Count and Form from specific Posts’ is closed to new replies.