versusbassz
Forum Replies Created
-
Forum: Plugins
In reply to: [Post Meta Inspector] Force 1.2 version releaseThank you
Forum: Plugins
In reply to: [qTranslate] Admin login and qTranslateYes, thanks
Forum: Plugins
In reply to: [qTranslate] Admin login and qTranslateWrite decision, please.
Forum: Plugins
In reply to: [Easy Tynt] php Notice error on plugin settings page after installI get this error always when i view plugin settings page without options update
Forum: Plugins
In reply to: [WP RSS Multi Importer] RSS Multi Importer cron stopped working…Forum: Plugins
In reply to: [FancyBox] Images don't show in IE9Same problem in all IE versions
Forum: Plugins
In reply to: [WP Show IDs ( simple, yet elegant )] Request for another show column, or twoForum: Plugins
In reply to: [Smarter Navigation] get_referrer_category IDHow you output this nav list ( wp_nav_menu or static markup or with other wp function ) ?
Is this primary or secondary navigation?
In any case, on single post page you can get referrer category object by get_referrer_category() function, and when you output navigation items, you can compare any navigation item parameter with get_referrer_category() result parameters and add active class if the parameters match.
Of course, if navigation not is static markup.And what is PU? =]
Forum: Plugins
In reply to: [Smarter Navigation] get_referrer_category ID<?php $referrer_cat = get_referrer_category(); // returns category object $referrer_cat_id = ( is_object( $referrer_cat ) ) ? $referrer_cat->term_id : false; // we take category id ?> <?php $li_class = ( is_category( 11 ) || $referrer_cat_id === 11 ) ? ' current ' : ''; ?> <li<?php echo $li_class; ?>> <a href="/wordpress/sandbox01/?cat=11">Environmental</a> </li>
I do not quite understand the question, but maybe this example will help you.
Forum: Plugins
In reply to: [Smarter Navigation] Smarter navigation with previous/next thumbnails$prev_post_id = get_adjacent_id_smart( true ); if( $prev_post_id ) { $args = array( 'posts_per_page' => 1, 'include' => $prev_post_id ); $prevPost = get_posts( $args ); foreach ( $prevPost as $post ) { setup_postdata( $post ); ?> <div class="post-previous"> <a href="<?php the_permalink(); ?>">?Previous Post</a> <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail'); ?></a> <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4> </div> <?php wp_reset_postdata(); } //end foreach } // end if
Please, try this for previous post block, and same for next post block with “get_adjacent_id_smart()” at first line.
So, get_adjacent_id_smart() – returns next post id,
get_adjacent_id_smart( true ) – returns previous post id
of course smarter functionality works with it =)Forum: Plugins
In reply to: [Audio Player] Fix your support site please!Yes, please, fix this….
Forum: Plugins
In reply to: [Smarter Navigation] Category pagination issueReplace this:
line 136 of main.php$next_posts = self::get_posts( array( '_sn_post' => get_queried_object(), '_sn_op' => $previous ? '<' : '>', 'order' => $previous ? 'DESC' : 'ASC', 'posts_per_page' => 2, ) );
on this:
$next_posts = self::get_posts( array( '_sn_post' => get_queried_object(), '_sn_op' => $previous ? '<' : '>', 'order' => $previous ? 'DESC' : 'ASC', 'posts_per_page' => 2, 'paged' => 1 ) );
Or replace this:
line 136 of main.php$next_posts = self::get_posts( array( '_sn_post' => get_queried_object(), '_sn_op' => $previous ? '<' : '>', 'order' => $previous ? 'DESC' : 'ASC', 'posts_per_page' => 2, ) );
on this:
$next_posts = self::get_posts( array( '_sn_post' => get_queried_object(), '_sn_op' => $previous ? '<' : '>', 'order' => $previous ? 'DESC' : 'ASC', 'posts_per_page' => 2, 'paged' => 1 ) );