juzkyte
Forum Replies Created
-
Forum: Hacks
In reply to: Get similar post from taxonomy?Thanks for your suppport, I get_the_terms and used that terms to query_posts… ^^ that working!
Forum: Hacks
In reply to: Get query post form tag id in postThanks you!
Forum: Hacks
In reply to: Show posts from tags of current post but don't show current postThanks you!
Forum: Hacks
In reply to: Get query post form tag id in post<?php $posttags = get_the_tags(); if ($posttags) {$dem= 0; foreach($posttags as $tag) {$dstag[$dem]= $tag->term_id; $dem++;}} $args = array('tag__in' => $dstag); $the_query = new WP_Query( $args ); ?> <?php if ( $the_query->have_posts() ) : ?> <!-- pagination here --> <!-- the loop --> <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <h2><?php the_title(); ?></h2> <?php endwhile; ?> <!-- end of the loop --> <!-- pagination here --> <?php wp_reset_postdata(); ?> <?php else: ?> <p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p> <?php endif; ?>
I used this code, worked but…
This code will show posts from tags of current post… but, it show current post… Please help me except current post ??Forum: Hacks
In reply to: Get query post form tag id in postPlease check your code? This not work exactly ??
Forum: Hacks
In reply to: Get query post form tag id in postI don’t know… you can tell me more detail?
Forum: Hacks
In reply to: Get query post form tag id in postOh…
<?php $posttags = get_the_tags(); if ($posttags) {foreach($posttags as $tag) {echo $tag->term_id.',';}}?>
Thanks for your support
Forum: Hacks
In reply to: Get query post form tag id in postThanks bcworkz!
And I want to get list tag id of post separated by commas? how?
Forum: Hacks
In reply to: Get query post form tag id in post`<?php
// the query $args = array ( ‘tag_id’ => ‘1,2,720’ );
$the_query = new WP_Query( $args ); ?><?php if ( $the_query->have_posts() ) : ?>
<!– pagination here –>
<!– the loop –>
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<h2><?php the_title(); ?></h2>
<?php endwhile; ?>
<!– end of the loop –><!– pagination here –>
<?php wp_reset_postdata(); ?>
<?php else: ?>
<p><?php _e( ‘Sorry, no posts matched your criteria.’ ); ?></p>
<?php endif; ?>I used this code but not work…
Forum: Plugins
In reply to: Display Random Search Result in "Search In Place" pluginHi… thanks so much
Forum: Plugins
In reply to: Display Random Search Result in "Search In Place" pluginI want to display random the search results ?? … help me