S sargon30 Nuovo Utente 7 Giu 2014 16 0 0 19 Giu 2014 #1 wordpress php Ciao a tutti ho regione, provincia, comune C'è uno script che mi possa aiutare a richiamare dinamicamente questi dati? Help!!!
wordpress php Ciao a tutti ho regione, provincia, comune C'è uno script che mi possa aiutare a richiamare dinamicamente questi dati? Help!!!
borgo italia Super Moderatore Membro dello Staff SUPER MOD MOD 4 Feb 2008 16.046 150 63 PR www.borgo-italia.it 20 Giu 2014 #2 ciao dai un occhio a https://www.mrw.it/ajax/select-dinamiche-jquery-php_7478.html
S sargon30 Nuovo Utente 7 Giu 2014 16 0 0 21 Giu 2014 #3 php wordpress helpp!! dove stà l'errore???? deve funzionare in wordpres... ormai ho perso ogni speranza... PHP: <?php global $post; $args = array( 'post_type' => 'post', 'tax_query' => array( 'relation' => 'AND', array( 'taxonomy' => 'regione', 'field' => 'slug', ), array( 'taxonomy' => 'provincia', 'field' => 'id', 'operator' => 'NOT IN' ), array( 'taxonomy' => 'comune', 'field' => 'id', 'operator' => 'NOT IN' ) ) ); $query = new WP_Query( $args ); echo '<ul>'; $myposts = get_posts( $args ); foreach ( $myposts as $post ) : setup_postdata( $post ); ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; wp_reset_postdata(); ?> </ul>
php wordpress helpp!! dove stà l'errore???? deve funzionare in wordpres... ormai ho perso ogni speranza... PHP: <?php global $post; $args = array( 'post_type' => 'post', 'tax_query' => array( 'relation' => 'AND', array( 'taxonomy' => 'regione', 'field' => 'slug', ), array( 'taxonomy' => 'provincia', 'field' => 'id', 'operator' => 'NOT IN' ), array( 'taxonomy' => 'comune', 'field' => 'id', 'operator' => 'NOT IN' ) ) ); $query = new WP_Query( $args ); echo '<ul>'; $myposts = get_posts( $args ); foreach ( $myposts as $post ) : setup_postdata( $post ); ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; wp_reset_postdata(); ?> </ul>