Ottobre 2011
8 post
If you just want to get or display attachments...
If you just want to get or display attachments: http://codex.wordpress.org/Function_Reference/get_children to get and display an image and a video attachments inside the media gallery of the post (bandeinprovincia.it) - add this inside the loop: <?php $images =& get_children( ‘post_type=attachment&post_mime_type=image&numberposts=1&post_parent=’.$post->ID...
Ott 14
3 massimo
Wordpress Multisite
add this to .htaccess if you have problem to access into /wp-admin of a subfolder RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond...
Ott 11
2 note
fontface
/*for IE*/ @font-face {     font-family: ‘font-name’;     src:url(‘http://www.examplesite.com/font.eot’); } /*for All Serious Browser*/ @font-face {     font-family: ‘font-name’;     src:url(‘http://www.examplesite.com/font.otf’) format(“opentype”),          url(‘http://www.examplesite.com/font.ttf’)...
Ott 10
AJAXing a WordPress Theme →
Ott 5
1 tag
the_excerpt - How to make it shorter
add in function.php function new_excerpt_length($length) {    return 20; } add_filter(‘excerpt_length’, ‘new_excerpt_length’);
Ott 5
2 massimo
Remove the alert box "upgrade wordpress to...
Add this in function.php if ( !current_user_can( ‘edit_users’ ) ) {  add_action( ‘init’, create_function( ‘$a’, “remove_action( ‘init’, ‘wp_version_check’ );” ), 2 );  add_filter( ‘pre_option_update_core’, create_function( ‘$a’, “return null;” ) ); }
Ott 5
6 note
2 massimo
Multiple Widget Areas
IN FUNCTION.PHP function new_widgets_init() { register_sidebar( array( ‘name’ => ‘Widget Area One’, ‘id’ => ‘widget-area-one’, ‘description’ => __( ‘Here the Widget Area One’), ‘before_widget’ => ‘<li id=”%1$s” class=”widget-container %2$s”>’, ...
Ott 4
61 note
jGrowl →
Ott 2