FIX Fixing url with ajax filter query
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f57d20dae7
commit
354a3ac83f
|
|
@ -1,14 +1,16 @@
|
||||||
<?php
|
<?php
|
||||||
global $post;
|
// global $post;
|
||||||
|
$postID = $args['post_ID'];
|
||||||
|
$post = get_post($postID);
|
||||||
|
|
||||||
$current_lang = apply_filters('wpml_current_language', null);
|
$current_lang = apply_filters('wpml_current_language', null);
|
||||||
|
|
||||||
$postID = $args['post_ID'];
|
|
||||||
$post_thumbnail = get_the_post_thumbnail($postID, 'full', array('class' => 'card-artisans__thumbnail card-post__thumbnail')) ?? null;
|
$post_thumbnail = get_the_post_thumbnail($postID, 'full', array('class' => 'card-artisans__thumbnail card-post__thumbnail')) ?? null;
|
||||||
$postDefautlThumbnail = get_stylesheet_directory_uri() . '/resources/img/illustrations/Homegrade_resultats-filtres.svg';
|
$postDefautlThumbnail = get_stylesheet_directory_uri() . '/resources/img/illustrations/Homegrade_resultats-filtres.svg';
|
||||||
|
|
||||||
|
|
||||||
$post_title = $args['post_title'];
|
$post_title = $args['post_title'];
|
||||||
$post_permalink = get_the_permalink($postID);
|
$post_permalink = get_the_permalink($postID);
|
||||||
|
|
||||||
$artisans_clean_url = get_home_url(null, '/') . 'artisans/' . $post->post_name;
|
$artisans_clean_url = get_home_url(null, '/') . 'artisans/' . $post->post_name;
|
||||||
|
|
||||||
$company_members = get_field('company_members', $postID);
|
$company_members = get_field('company_members', $postID);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user