Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed. We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

IS it possible to position the poll behind "

2 Posts
2 Users
0 Reactions
533 Views
Posts: 2
Topic starter
(@kikorist)
Active Member
Joined: 12 months ago

I want to place the voting results behind "<div class="wpforo-post-content">

I read the topics below and the voting results were displayed below the comments.

want to display the voting results between the post content and the reply.

https://gvectors.com/forum/wpforo-polls/is-it-possible-to-position-the-poll-below-the-description/

Please help me and tell me how to deal with it.

1 Reply
Astghik
Posts: 6444
Admin
(@astgh)
Illustrious Member
Joined: 8 years ago

Hi,

You can use the hook-code below: 

add_action( 'wpforo_after_init', function() { if( function_exists('WPF_POLL') ) { remove_action( 'wpforo_content_start', [ WPF_POLL()->tpl, 'show' ] ); add_action( 'wpforo_tpl_post_loop_after_content', function( $post ){ if( $post['is_first_post'] ){ WPF_POLL()->tpl->show(); } } ); } }, 9999 );

Insert the code in the active theme functions.php file. 

This article should be helpful for you: https://www.wpbeginner.com/plugins/how-to-allow-php-in-wordpress-posts-and-pages/

Reply
Share:
Scroll to top