View all speakers link is not correct in the case of multiple speakers template page

  1. Home
  2. Docs
  3. Vertoh
  4. Frequently Asked Question...
  5. View all speakers link is not correct in the case of multiple speakers template page

View all speakers link is not correct in the case of multiple speakers template page

If you have more than one Speakers template page, ‘view all speakers’ links to the last speakers template page.

If you need to link to the first speakers page, then please do the following:

1) Please don’t forget to take a back up of the file prior to any changes.

2) Open wp-content/themes/vertoh/event-framework/components/widgets/widget-speakers.php via FTP or Cpanel

3) Search for the following code:

$full_speakers_page = get_posts(
array(
‘post_type’ => ‘page’,
‘meta_key’ => ‘_wp_page_template’,
‘meta_value’ => ‘speakers.php’
)
);

4) Replace above with the following:

$full_speakers_page = get_posts(
array(
‘post_type’ => ‘page’,
‘meta_key’ => ‘_wp_page_template’,
‘meta_value’ => ‘speakers.php’,
‘order’ => ‘ASC’
)
);

5) Update the file.

Was this article helpful to you? Yes No