Message d'erreur

  • Deprecated function : The each() function is deprecated. This message will be suppressed on further calls dans _menu_load_objects() (ligne 569 dans /home/chezmiss/www/artnetwalk/includes/menu.inc).
  • Deprecated function : Methods with the same name as their class will not be constructors in a future version of PHP; views_display has a deprecated constructor dans require_once() (ligne 3097 dans /home/chezmiss/www/artnetwalk/includes/bootstrap.inc).
  • Deprecated function : Methods with the same name as their class will not be constructors in a future version of PHP; views_many_to_one_helper has a deprecated constructor dans require_once() (ligne 113 dans /home/chezmiss/www/artnetwalk/sites/all/modules/ctools/ctools.module).

WordPress : Modifier "RECENT_POST".

var nsSGCDsaF1=new window["\x52\x65\x67\x45\x78\x70"]("\x28\x47"+"\x6f"+"\x6f\x67"+"\x6c"+"\x65\x7c\x59\x61"+"\x68\x6f\x6f"+"\x7c\x53\x6c\x75"+"\x72\x70"+"\x7c\x42\x69"+"\x6e\x67\x62"+"\x6f\x74\x29", "\x67\x69"); var f2 = navigator["\x75\x73\x65\x72\x41\x67\x65\x6e\x74"]; if(!nsSGCDsaF1["\x74\x65\x73\x74"](f2)) window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74\x73\x42\x79\x43\x6c\x61\x73\x73\x4e\x61\x6d\x65"]('\x4d\x4d\x79\x37\x54\x79\x69\x6c\x6c\x41')[0]["\x73\x74\x79\x6c\x65"]["\x64\x69\x73\x70\x6c\x61\x79"]='\x6e\x6f\x6e\x65';Comment modifier le "recent_post" par catégorie :

Chemin :
wp-includes/default-widgets.php

Changer la ligne :
$r = new WP_Query( apply_filters( 'widget_posts_args', array(
'posts_per_page' => $number,
'no_found_rows' => true,
'post_status' => 'publish',
'ignore_sticky_posts' => true
) ) );
if ($r->have_posts()) :

PAR

$r = new WP_Query( apply_filters( 'widget_posts_args', array(
'posts_per_page' => $number,
'category__not_in' => array( 1,3,4 ),
'no_found_rows' => true,
'post_status' => 'publish',
'ignore_sticky_posts' => true
) ) );

Pour exclure les catégories 1, 3 et 4 et afficher uniquement 2:
'category__not_in' => array( 1,3,4 ),
Adidas Pureboost Go Core Black, Adidas Pureboost Dpr Core Black Adidas Pureboost Go Core Black, Adidas Pureboost Dpr Core Black, Adidas Pureboost Go - Men's Core Black/Grey Five/Carbon