Commit d6a10fd1 authored by Simonas's avatar Simonas

in progress

parent ec7d6ecf
# ----------------------------------------------------------------------
# CV security redirects
# ----------------------------------------------------------------------
location ^~ /wp-content/uploads/2019/ {
try_files $uri $uri/ /index.php?$args;
if ($http_referer !~* .*livas.biuro.lt.*) {
return 403;
}
}
# ----------------------------------------------------------------------
# 301 biuro.lt redirects
# ----------------------------------------------------------------------
......
This diff is collapsed.
......@@ -807,7 +807,9 @@ function getResults($taxonomy, $term, $termID) {
LEFT JOIN `{$prefix}termmeta` AS `termmeta` ON termmeta.term_id = term.term_id AND termmeta.meta_key = 'order'
LEFT JOIN `{$prefix}termmeta` AS `termpage` ON termpage.term_id = term.term_id AND termpage.meta_key = 'page-id'
LEFT JOIN `{$prefix}posts` AS `pages` ON `pages`.`ID` = `termpage`.`meta_value`
{$structure}
LEFT JOIN `{$prefix}term_relationships` AS `polylang_languages` ON `polylang_languages`.`object_id` = `t`.`ID` AND `polylang_languages`.`term_taxonomy_id` = $langID
WHERE ( ( `valid`.`meta_value` >= '{$today}' {$condition} ) AND ( `t`.`post_type` = 'job' ) AND ( `polylang_languages`.`object_id` IS NOT NULL ) AND ( `t`.`post_status` IN ( 'publish' ) ) )
GROUP BY term.name) records
......
......@@ -31,18 +31,24 @@ get_header(); ?>
endwhile;
$related = pods( 'division', $params )->find( array(
'limit' => -1,
'where'=>"page-id.ID = " . $pageID
) );
$total = $related->total();
// $related = pods( 'division', $params )->find( array(
// 'limit' => -1,
// 'where'=>"page-id.ID = " . $pageID
// ) );
// $total = $related->total();
$divisions = pods( 'division', array(
'limit' => -1
) );
// global $wpdb;
// delog(pll_current_language());
// delog($wpdb->last_query);
// debug($wpdb->last_result);
if ( 0 < $divisions->total() ):
$cities = array();
?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment