jzk
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Loops and WP PageNavi Plugin problemsFYI, I found how to resolve this problem like this :
<?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query('cat=-6&paged=' . $paged); while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <?php // the usual post-displaying codes here ?> <?php endwhile; if(function_exists('wp_pagenavi')) { wp_pagenavi(); } $wp_query = null; $wp_query = $temp; ?>Sources= http://www.wplover.com/756/how-to-get-custom-wp_query-loop-working-with-pagination-and-wp-pagenavi
Thanks!
Forum: Fixing WordPress
In reply to: Adding separator with wp-get-post-termsGreat it works ! Really thanks a lot ! 😉
Forum: Fixing WordPress
In reply to: Adding separator with wp-get-post-termsYes I want literally add a “+” or “//” between each link.
There is a way adding like that :
echo '<a href="' . esc_attr(get_term_link($term, 'category')) . '" title="' . sprintf( __( "View all posts in %s" ), $term->name ) . '" ' . '>' . $term->name.'</a> + ';But after the result is :
cat-name_1 + cat-name_2 + cat-name3 +Forum: Fixing WordPress
In reply to: Adding separator with wp-get-post-termsThanks for this answer.
It could be a way but ideally I would like to separate the category like this :
cat-name_1 + cat-name_2 + cat-name3Forum: Fixing WordPress
In reply to: get_the_category orderHello Michael,
Your solution works great. Do you think there is a chance to display only the last category => grandchild with your solution ?