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 | |
// article du codex: http://codex.wordpress.org/Class_Reference/WP_Query | |
// Query sur Catégories d'articles (ID) (inclure) | |
$ma_boucle = new WP_Query( 'cat=2,6,17,38' ); | |
// Query sur Catégories d'articles (ID) (exclure) | |
$ma_boucle = new WP_Query( 'cat=-12,-34,-56' ); |
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
## Coller la totalite dans champs SQL de phpMyAdmin ## | |
## ATTENTION A NE PAS METTRE DE SLASH A LA FIN DES URL ## | |
# CHANGER URL DU SITE | |
UPDATE wp_options | |
SET option_value = REPLACE(option_value, 'http://www.vieuxsite.fr', 'http://www.nouveausite.fr') | |
WHERE option_name = 'home' |
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 | |
/** | |
* Post Title | |
*/ | |
add_action('genesis_post_title', 'genesis_do_post_title'); | |
function genesis_do_post_title() { | |
if ( is_singular() ) { | |
$title = sprintf( '<h1 class="entry-title">%s</h1>', apply_filters( 'genesis_post_title_text', get_the_title() ) ); | |
} |
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 | |
require_once(TEMPLATEPATH.'/lib/init.php'); | |
include_once 'metaboxes/setup.php'; | |
// META BOXEX WP ALCHEMY | |
// wpalchemy metadonnees | |
$gn_metadonnees_mb = new WPAlchemy_MetaBox(array | |
( | |
'id' => '_custom_metadonnees', // = références |
NewerOlder