Notifications
Clear all

IS it possible to position the poll behind "

2 Posts
2 Users
0 Reactions
234 Views
Posts: 2
Topic starter
(@kikorist)
Active Member
Joined: 3 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: 6191
Admin
(@astgh)
Illustrious Member
Joined: 7 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