Close

Account

Documentation

Forum

Menu

Reply To: issue with translation not picked up

Post count: 67
huwcole
July 8, 2016 at 8:16 pm #21116

something seems to go wrong here:
wp-content\themes\jobplanet-themes\fragment\job-detail.php”

line 70
<span class=”salary-range-detail”><?php echo esc_html( vp_metabox(‘jobplanet_job.salary_range’)); ?></span>

vp_metabox finction seems to pick up an array in
wp-content\plugins\jobplanet-plugin\lib\metabox\job-metabox.php”

array(
‘type’ => ‘select’,
‘name’ => ‘salary_range’,
‘label’ => esc_html(__(‘Salary Range’, ‘jobplanet-plugin’)),
‘items’ => array(
array(
‘value’ => ‘hourly’,
‘label’ => esc_html(__(‘Hourly’, ‘jobplanet-plugin’)),
),
array(
‘value’ => ‘weekly’,
‘label’ => esc_html(__(‘Weekly’, ‘jobplanet-plugin’)),
),
array(
‘value’ => ‘monthly’,
‘label’ => esc_html(__(‘Monthly’, ‘jobplanet-plugin’)),
),
array(
‘value’ => ‘yearly’,
‘label’ => esc_html(__(‘Yearly’, ‘jobplanet-plugin’)),
),
),
‘default’ => array(
‘yearly’
),
)

but it is not picking up the label values.

instead it is picking up the value stored in the database table postmeta.
I tested it by changing the value directly in the database table and it displays whatever you enter.

thanks