Fudge2

  1. Home
  2. Docs
  3. Fudge2
  4. Frequently Asked Questions
  5. When not setting a location for a session, a default location is shown in the list view. How to solve this?

When not setting a location for a session, a default location is shown in the list view. How to solve this?

a) Please do remember to back-up the files prior to any changes.

b) Open event-framework/helpers/cpt/sessions.php

c) Around line number 169, you can find:

$locations = wp_get_post_terms(get_the_ID(), ‘session-location’);

d) Please change this to:

$locations = wp_get_post_terms(get_the_ID(), ‘session-location’);
$location = ”;

e) Save the file.

Note:

This is a parent theme change. You need to reapply this change when you upgrade the theme.

Was this article helpful to you? Yes No