FAQ

System update

when updating do not copy over following files:

  • index.php
  • wp-settings.php
  • xml-rpx.php
  • entire wp-content folder

if however wp-settings need to updated than reinsert following code

$checker = get_option('ap24_cache_deactivation');

if (!$_POST && strpos ($_SERVER['REQUEST_URI'], 'wp-admin') === false && strpos ($_SERVER['REQUEST_URI'], 'ap24-vehicle-service') === false && !isset ($_GET['dm']) && get_current_blog_id() != 1 && $checker != 1 && strpos(join(array_keys($_COOKIE)), 'wordpress_logged_in') === false && $_GET['ajax'] != "1") {
require_once (ABSPATH . 'wp-content/plugins/wp-mobile-detect/mobile-detect.php');
$marian_mobile_detect = new Mobile_Detect;
$is_ie = (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false));
$is_chrome = strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome') !== false;
$marian_mobile_mode = 4 * $is_chrome + 3 * $is_ie + 2 * ($marian_mobile_detect->isMobile() && ! $marian_mobile_detect->isTablet()) + ($marian_mobile_detect->isTablet());
$marian_mega_cache = array ($_SERVER['HTTP_HOST'], get_current_blog_id(), $_SERVER['REQUEST_URI'], $marian_mobile_mode);
$marian_mega_file = ABSPATH . 'wp-content/uploads/marian-cache/' . get_current_blog_id() . '-' . md5 (serialize ($marian_mega_cache)) . '.html';
if (file_exists ($marian_mega_file)) {
readfile ($marian_mega_file);
die;
}
ob_start(function ($content) {
global $marian_mega_file;
if ($marian_mega_file && strpos (join (headers_list()), 'ocation') === false) {
file_put_contents ($marian_mega_file, $content);
}
return $content;
});
}

post loop widget

bla

auto taxonomy menu

bla

post carousel

Short code: [ ap24_carousel_posts ]

Description:

Carousel is based on the post type and different templates can be used. Topper will only fetch vehicles that are marked as top offers. The carousel_id needs only to be set if you want to show multiple carousels on one page. Depending on the post_type there are different arguments like brand id or ehline_cat_id that can be used.
The short code makes use of the WP_Query() class.

jQuery plugin info

 

Arguments:

‘post_type’ = ‘vehicles’
‘topper’ = 0 (only for vehicles)
‘image_ids’ = ” (image id’s | separated)
‘carousel_id’ = ‘owl-demo’ (css id)
‘brand_id’ = ” (vehicles + posts types width reference filter)
‘model_id’ = ” (vehicles + posts types width reference filter)
‘ehline_cat_id’ = ” (only for ehline products)
‘title’ = ” (section title can be set here)
‘posts_per_page’= 20,
‘taxonomy’ = ” (any taxonomy can be chosen and needs to be set in combination with a term_slug)
‘term_slug’ = ”
‘auto_play’ = false
‘related’ = false (true would add a panel wrapper around the carousel)