Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Ok I found something, changing $wp_query to another name (for example I used $wp_query_related) made it working for me.

    Hi,

    I have excatly the same problem while adding the code below in my template.

    If I remove the code, everything is working fine. Any idea?

    <?php echo _e( "Goes well with...", "shiseido" ); ?><br/><br/>
    
    		<?php
    		$postperpage = 5;
    		$paged = 1;
    		$type = array('shiseido_products');
    		$taxonomy = 'shiseido-category';
    
    		$args=array(
    			'post_type' => $type,
    			'post_status' => 'publish',
    			'paged' => $paged,
    			'posts_per_page' => $postperpage,
    			'ignore_sticky_posts'=> 1,
    			'post__not_in' => array(get_the_id()),
    			'tax_query' => array(
    					array(
    						'taxonomy' => $taxonomy,
    						'field' => 'id',
    						'terms' => array($in_cats),
    						'operator' => 'IN'
    					)
    				)
    		);
    
    		$temp = $wp_query;
    		$wp_query = null;
    		$wp_query = new WP_Query($args);
    		?>
    
    		<?php if ( $wp_query->have_posts() ) { ?>
    			<?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
    				<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
    					<?php $category = get_the_category_bytax($post->ID, 'shiseido-line'); echo $category[0]->cat_name; ?><br/>
    					<?php the_title(); ?><br/>
    					<?php
    					$rows = get_field('shiseido_product_thumbnails' );
    					$first_row = $rows[0];
    					$first_row_image = $first_row['shiseido_product_main_thumbnail' ];
    					$image = wp_get_attachment_image_src( $first_row_image, '200x200' );
    					if ($image) { ?>
    						<img width="<?php echo $image[1]; ?>" height="<?php echo $image[2]; ?>" src="<?php echo $image[0]; ?>" />
    					<?php } ?>
    
    				</a><br/>
    			<?php endwhile; ?>
    		<?php } ?>
    Thread Starter clecocq

    (@clecocq)

    Hi,

    I understand don’t worry ?? it’s normal.

    Happy thanksgiving by the way.

    I contact you off forum.

    Cyril

    Thread Starter clecocq

    (@clecocq)

    Oups sorry but I’m really really not familiar with SQL.

    Can you help with this? It will be another example for the community… ??

    Where to replace this in your plugin? which line?
    How to do? Any chance that you help constructing this subquery and tell me where to put it?

    Code is

    <?php $nextPost = next_post_link_plus( array(
    					'return' => 'href',
    					'post_type' => ' "artup_galeristes","artup_medias","artup_editeurs","artup_autres","artup_structures" ',
    					'in_same_meta' => 'artup-valider-exposant',
    					/*'order_by' => 'custom',
    					'meta_key' => 'artup-ordre-exposant',*/
    					'loop' => true
    				)
    			); ?>

    I need to order_by by artup-ordre-exposant but in the same time I have to control that artup-valider-exposant is true (it’s a boolean).

    Your plugin is really interesting, but I’m stuck with this and my customer waits for a solution.

    Thanks in advance for your help,

    Cyril

    Hi all!

    Same problem here (concerning the date dissappearing).

    I noticed that it’s when two dates are similar (12/09 and 12/09) because when I switch one to 13/09 this one appear again.

    I’m using this:

    <span class="event-day">
    <?php echo tribe_get_start_date( null, false, 'j'); ?>
    <br/>
    <strong><?php echo tribe_get_start_date( null, false, 'M'); ?></strong>
    </span>

    Any idea?

    Same for me ??

Viewing 6 replies - 1 through 6 (of 6 total)