Plugin Author
YOP
(@yourownprogrammer)
Hi wm,
1. Edit public-admin.php and look for this function
public function yop_poll_archive_shortcode_function() {
Replace
$archive = YOP_POLL_MODEL::get_archive_polls( ‘archive_order’, ‘asc’,
with
$archive = YOP_POLL_MODEL::get_archive_polls( ‘date_added’, ‘desc’,
and
$total_archive = ceil( count( YOP_POLL_MODEL::get_archive_polls( ‘archive_order’, ‘asc’,
with
$total_archive = ceil( count( YOP_POLL_MODEL::get_archive_polls( ‘date_added’, ‘desc’,
2. Just like for the previous question, edit public-admin.php and look for public function yop_poll_archive_shortcode_function() {
Where you have
if ( count( $archive ) > 0 ) {
foreach( $archive as $poll ) {
$template .= $this->return_yop_poll( $poll[‘id’] );
}
}
replace $template .= $this->return_yop_poll( $poll[‘id’] ); with
$template .= $this->return_yop_poll( $poll[‘id’] ).'[your_theme_poll_separator_html_code]’;
where [your_theme_poll_separator_html_code] (and this answers your 3rd question as well) is the html code you want to use to separate the polls.
Best wishes,
YOP Team
Thread Starter
Piani
(@webbmasterpianise)
Thanks YOP Team
The instructions you provided above solved all my questions and the result is exactly the design I requested!
$template .= $this->return_yop_poll( $poll['id'] ).'<img src="http://separator_image.png" style="padding:10px;">';