This file contains 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 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 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 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 | |
) |
NewerOlder