AI Assistant
Notifications
Clear all

IS it possible to position the poll behind "

2 Posts
2 Users
0 Reactions
1,494 Views
Posts: 2
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@kikorist)
Active Member
Joined: 2 years ago
[#13784]

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: 6691
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@astgh)
Illustrious Member
Joined: 9 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