The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Multiple Inline Com...
 
Share:
Notifications
Clear all

Multiple Inline Comments (short comments) on thumbnail gallery

5 Posts
2 Users
0 Reactions
944 Views
Posts: 3
Topic starter
(@xhide00)
Active Member
Joined: 4 years ago

I'm trying to utilize the 'inline comment' to enable a quick commenting on each thumbnail within a gallery page.

please see attached image for ref.

test

so I was trying to manually generate the shortcode but the form doesn't even show up on the page using:

 

<?php echo do_shortcode('[wpdiscuz-feedback id=". $photo_id." question="'. $num .'" opened="0"][/wpdiscuz-feedback]'); ?>

 

can you please tell me why it's not showing up?

 

if I generate those inline comments within the default content area  it shows fine.

it's just whenever I try to manually generate it it wouldn't work.

 

please help.

thank you!

4 Replies
Asti
Posts: 7661
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

@xhide00,

We're really sorry, but the inline feedback shortcode is designed for post content. There are a lot of changes you should manually do to get the feedback button to work for this case. For example, you should manually add the question in the DB table. 

Reply
Posts: 3
Topic starter
(@xhide00)
Active Member
Joined: 4 years ago
Posted by: @asti

you should manually add the question in the DB table. 

can you please guide me how this is done?

 

FIY, this is my current code:

<?php
$slug = get_post_field( 'post_name', get_post() );
$num = 0;

while( have_rows('phone_booth') ): the_row();
?>
<div class="thumb-image">

<?php if (get_sub_field('image')):?>
<?php
$image = get_sub_field('image');
$size = 'canvas-thumb'; // (thumbnail, medium, large, full or custom size)
echo wp_get_attachment_image( $image.$size);
$num++;

?>

<?php echo do_shortcode('[wpdiscuz-feedback id="'. $slug.$num .'" question="'. $num .'" opened="0"][/wpdiscuz-feedback]'); ?>

 

<?php endif;?>

</div>
<?php endwhile; ?>

Reply
Posts: 3
Topic starter
(@xhide00)
Active Member
Joined: 4 years ago

just another quick question here:

I'm using ACF(advanced custom fields) to create loop and I'm using their WYSWYG editor (similar to WP's default the_content editor) but even when the 'discussion' check mark is on, it allows to insert inline comment only on WP's default editor and not on ACF's editor.

would there be a way to have that option show up in the ACF's editor?

test
Reply
1 Reply
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7661

@xhide00,

can you please guide me how this is done?

I'm really sorry, but there is no easy solution we can provide you. 

would there be a way to have that option show up in the ACF's editor?

This is designed to work in this way. The inline commenting is designed for post content. However, you can use the shortcode:

[wpdiscuz-feedback id="idNCXs" question="here is my question" opened="0"]What do you think of this?[/wpdiscuz-feedback]

Just make sure the red marked "idNCXs" ID is unique for each shortcode.

Reply
Share: