This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header ?> | |
<?php | |
// Je récupère toutes les pages enfant de la page courante | |
query_posts( | |
array( | |
'post_type' => 'page', | |
'post_parent' => get_the_ID(), | |
'nopaging' => true | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<div id="main" role="main" class="mod pam"> | |
<h4>Page d'accueil</h4> | |
<div class="grid" > | |
<div class="grid4"> | |
<?php | |
if ( have_posts() ) while ( have_posts() ) : the_post(); | |
?> | |
<div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Parfois lors de la modification de l'image source d'un article à travers le wp_image_editor, | |
on veut que WordPress regénère les thumbnails associées, voici le moyen de le faire le plus simplement | |
*/ | |
/** | |
* Rebuilt the image sizes | |
* | |
* @param $att_id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Album shortcode | |
Version: 0.1 | |
Description: Un shortcode pour afficher un album | |
*/ | |
// don't load directly | |
if ( !defined('ABSPATH') ) | |
die('-1'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Album shortcode | |
Version: 0.1 | |
Description: Un shortcode pour afficher un album | |
*/ | |
// don't load directly | |
if ( !defined('ABSPATH') ) | |
die('-1'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Album shortcode | |
Version: 0.1 | |
Description: Un shortcode pour afficher un album | |
*/ | |
// don't load directly | |
if ( !defined('ABSPATH') ) | |
die('-1'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Album shortcode | |
Version: 0.1 | |
Description: Un shortcode pour afficher un album | |
*/ | |
// don't load directly | |
if ( !defined('ABSPATH') ) | |
die('-1'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Album shortcode | |
Version: 0.1 | |
Description: Un shortcode pour afficher un album | |
*/ | |
// don't load directly | |
if ( !defined('ABSPATH') ) | |
die('-1'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function custom_search_query( $query ) { | |
if( is_admin() && $query->is_main_query() && $query->query['post_type'] === 'revendeurs' && isset($query->query_vars['s']) ) | |
{ | |
$custom_fields = array( | |
// put all the meta fields you want to search for here | |
"raison_sociale", | |
); | |
$searchterm = $query->query_vars['s']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class ACF_Terms_Fields | |
* @version 1.1.0 | |
* | |
* Fill all the taxonomy terms with ACF metas | |
*/ | |
class ACF_Terms_Fields { | |
/** |
OlderNewer