The forums are closed and will be removed when we launch our new site.
Looking for support? You can access the support system via your account.
Javier Martín Balsa
Forum Replies Created
-
Javier Martín Balsa in reply to:
Hide Posts if nothing is selected, then show them(Private) January 28, 2020 at 6:41 pm #230489Link to the page, I cant attach or put links to imgs on dropbox.
http://www2.vamos.es/renting-de-coches
Yo will see there are to Fiat 500, I want to hide in the first place when nothing is check on the filter the one with the URL (http://www2.vamos.es/renting/fiat-500-empresa) and then show it if the “Empresa” filter is checked.
Thanks
Javier Martín Balsa in reply to:
Hide Posts if nothing is selected, then show them(Private) January 28, 2020 at 6:41 pm #230488This reply has been marked as private.Javier Martín Balsa in reply to:
Hide Posts if nothing is selected, then show them(Private) January 28, 2020 at 6:41 pm #230487There yo go:
Javier Martín Balsa in reply to:
Hide Posts if nothing is selected, then show them(Private) January 28, 2020 at 6:41 pm #230484This reply has been marked as private.Javier Martín Balsa in reply to:
Hide Posts if nothing is selected, then show them(Private) January 28, 2020 at 6:41 pm #230483Javier Martín Balsa in reply to:
Hide Posts if nothing is selected, then show them(Private) January 28, 2020 at 6:41 pm #230482Javier Martín Balsa in reply to:
Hide Posts if nothing is selected, then show them(Private) January 22, 2020 at 12:26 pm #231823Here is my code, just replace the <?php the_title (); ?> with your code (thumbnail, tags, categories..) and there you go.
<?php /** * Search & Filter Pro * * Sample Results Template * * @package Search_Filter * @author Ross Morsali * @link http://www.designsandcode.com/ * @copyright 2015 Designs & Code * * Note: these templates are not full page templates, rather * just an encaspulation of the your results loop which should * be inserted in to other pages by using a shortcode - think * of it as a template part * * This template is an absolute base example showing you what * you can do, for more customisation see the WordPress docs * and using template tags - * * http://codex.wordpress.org/Template_Tags * */ global $searchandfilter; $sf_current_query = $searchandfilter->get(5555)->current_query(); if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()=="")) { ?> <?php // set up or arguments for our custom query $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; $query_args = array( 'post_type' => 'renting', 'post__not_in' => array(4894, 4898, 4900, 4902, 4896), 'tax_query' => array( 'relation' => 'AND', array( 'taxonomy' => 'mostrar-en-parrilla', 'field' => 'slug', 'terms' => 'si', ), ), 'posts_per_page' => -1, 'paged' => $paged ); // create a new instance of WP_Query $the_query = new WP_Query( $query_args ); ?> <?php if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); // run the loop ?> <?php the_title (); ?> <?php endwhile; ?> <?php endif; ?> <?php wp_reset_query(); ?> <?php } else { if ( $query->have_posts() ) { ?> Found <?php echo $query->found_posts; ?> Results<br /> Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br /> <div class="pagination"> <div class="nav-previous"><?php next_posts_link( 'Older posts', $query->max_num_pages ); ?></div> <div class="nav-next"><?php previous_posts_link( 'Newer posts' ); ?></div> <?php /* example code for using the wp_pagenavi plugin */ if (function_exists('wp_pagenavi')) { echo "<br />"; wp_pagenavi( array( 'query' => $query ) ); } ?> </div> <?php while ($query->have_posts()) { $query->the_post(); ?> <?php the_title (); ?> <?php } ?> Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br /> <div class="pagination"> <div class="nav-previous"><?php next_posts_link( 'Older posts', $query->max_num_pages ); ?></div> <div class="nav-next"><?php previous_posts_link( 'Newer posts' ); ?></div> <?php /* example code for using the wp_pagenavi plugin */ if (function_exists('wp_pagenavi')) { echo "<br />"; wp_pagenavi( array( 'query' => $query ) ); } ?> </div> <?php } else { echo "No Results Found"; } } ?>
Javier Martín Balsa in reply to:
Hide Posts if nothing is selected, then show them(Private) January 22, 2020 at 12:18 pm #231819This reply has been marked as private.Javier Martín Balsa in reply to:
Hide Posts if nothing is selected, then show them(Private) January 22, 2020 at 9:16 am #231807Thanks!!!!!
Javier Martín Balsa in reply to:
Hide Posts if nothing is selected, then show them(Private) January 22, 2020 at 9:04 am #231803This reply has been marked as private. -
AuthorPosts