Commit 7c97dc09 authored by Nathan Peraldi's avatar Nathan Peraldi

delete useless text for event displaying

parent c8aa8f53
......@@ -12,17 +12,13 @@
* $args - the args passed onto EM_Events::output()
*/
/*
Template Name: Compteur événement
*/
function recup_nombre()
{
global $wpdb;
$search = "ag-adullact-2019";
$post = "post_name";
$link = $_SERVER["REQUEST_URI"];
$cleared_link = explode("/",$link)[2];
$search = $cleared_link;
$search = explode("/",$link)[2];
$query = "SELECT count(meta_value) as number FROM wp5304_postmeta WHERE meta_value LIKE '%" . $search . "%' && meta_value LIKE '%" . $post . "%'";
$result = $wpdb->get_results($query);
......@@ -34,4 +30,4 @@ global $EM_Event;
recup_nombre();
echo $EM_Event->output_single(); ?>
\ No newline at end of file
echo str_replace("Carte non disponible","",$EM_Event->output_single()); ?>
\ No newline at end of file
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