Dre4000
Forum Replies Created
-
Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] also displaying only the first pageok
Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] also displaying only the first pageat the magician, or you can probably add a second $new_query to the wp pagenavi alone. Im not sure if this is how you would do this but, you might get what im talking about.
wp_pagenavi(array(‘query’ => $new_query, $new_query ));
Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] also displaying only the first pageat the magician, maybe you can probably change the name of one of the query because i see at the top that you have two $new_querys. Then run another wp_pagenavi with the new query name. Im not sure if it will work since im not a programmer so you probably understand it better than I if my suggestion will work or not.
Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] also displaying only the first pagetry this but make sure you backup first.
<div id="inner-main-content"> <?php while (have_posts()) : the_post(); ?> <h1><?php the_title(); ?></h1> <?php endwhile;?> <? $communityservice = "community-service"; ?> <?php $my_query = new WP_Query( array('category_name='.$communityservice.'&posts_per_page=1')); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <div class="news-container"> <?php the_post_thumbnail('updates-thumb'); ?> <div class="news-intro" style="float:left; margin-left:10px; width:350px;"> " class="link-title"><?php the_title(); ?> <p style="font-size:11px; margin:2px 0px 2px 0px;"><i>Posted <?php echo get_the_date(); ?> at <?php echo get_the_time(); ?></i></p> <p style="line-height:17px;"> <?php short_excerpt(180) ?> " class="read-more">read more <span class="meta-nav">→</span> </p> </div> </div> <div class="clear"></div> <hr> <?php endwhile;?> <?php wp_pagenavi(array('query' => $my_query )); ?> </div>
Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] Pagenavi not working on Thesis 1.8.4oh okay, I see what you used.
Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] Pagenavi not working on Thesis 1.8.4oh ok, have you gotten pagination to work with custom loops?
Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] Pagenavi not working on Thesis 1.8.4have you upgraded to 1.8.5
Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] also displaying only the first pagecheck out this page:
https://scribu.net/wordpress/wp-pagenavi/wpn-2-74.htmlForum: Plugins
In reply to: [WP-PageNavi] WP-PageNavi only displaying first page.Forum: Plugins
In reply to: [WP-PageNavi] WP-PageNavi only displaying first page.I found help on this page by second example on this page:
function News(){ if (is_page('Backyard Blog')) { ?> <div id= "Blog"> <div id= "BBlog"> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $custom_loop = new WP_Query(array( 'paged' => $paged, 'post_type' => 'post', 'cat' => 1, 'posts_per_page' => 2, 'orderby_order' => 'date' )); if ( $custom_loop->have_posts() ) : while ( $custom_loop->have_posts() ) : $custom_loop->the_post(); $post_image = thesis_post_image_info('thumb'); echo '<div class="post type-post hentry post_box top">'; echo $post_image['output']; echo '<div class="headline_area"><h5 class="entry-title"><a href="' . get_permalink() . '">' . get_the_title() . '</a></h5>'; echo '<p class="headline_meta"><abbr title="" class="published">' . get_the_date() . '</abbr></p></div>'; echo '<div class="format_text entry-content"><p>' . get_the_excerpt() . '</p></div>'; echo '<a href="' . get_permalink() . '">' . '<span class="slider-more-button published">Read More ?</span></a>'; echo '</div>'; endwhile; wp_pagenavi( array( 'query' => $custom_loop ) ); wp_reset_query(); endif; ?></div> </div><?php } } add_action('thesis_hook_after_headline','News');
I fixed it with this:
function News(){ if (is_page('Backyard Blog')) { ?> <div id= "Blog"> <div id= "BBlog"> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $custom_loop = new WP_Query(array( 'paged' => $paged, 'post_type' => 'post', 'cat' => 1, 'posts_per_page' => 2, 'orderby_order' => 'date' )); if ( $custom_loop->have_posts() ) : while ( $custom_loop->have_posts() ) : $custom_loop->the_post(); $post_image = thesis_post_image_info('thumb'); echo '<div class="post type-post hentry post_box top">'; echo $post_image['output']; echo '<div class="headline_area"><h5 class="entry-title"><a href="' . get_permalink() . '">' . get_the_title() . '</a></h5>'; echo '<p class="headline_meta"><abbr title="" class="published">' . get_the_date() . '</abbr></p></div>'; echo '<div class="format_text entry-content"><p>' . get_the_excerpt() . '</p></div>'; echo '<a href="' . get_permalink() . '">' . '<span class="slider-more-button published">Read More ?</span></a>'; echo '</div>'; endwhile; wp_pagenavi( array( 'query' => $custom_loop ) ); wp_reset_query(); endif; ?></div> </div><?php } } add_action('thesis_hook_after_headline','News');
[Moderator Note: Please post code or markup snippets between backticks or use the code button.]
Forum: Plugins
In reply to: [WP-PageNavi] WP-PageNavi only displaying first page.Im having the same issue here is the code:
function News(){ if (is_page('Backyard Blog')) { ?> <div id= "Blog"> <div id= "BBlog"> <?php $custom_loop = new WP_Query('posts_per_page=-2&category_name=Uncategorized&orderby=date'); if ( $custom_loop->have_posts() ) : while ( $custom_loop->have_posts() ) : $custom_loop->the_post(); $post_image = thesis_post_image_info('thumb'); echo '<div class="post type-post hentry post_box top">'; echo $post_image['output']; echo '<div class="headline_area"><h5 class="entry-title"><a href="' . get_permalink() . '">' . get_the_title() . '</a></h5>'; echo '<p class="headline_meta"><abbr title="" class="published">' . get_the_date() . '</abbr></p></div>'; echo '<div class="format_text entry-content"><p>' . get_the_excerpt() . '</p></div>'; echo '<a href="' . get_permalink() . '">' . '<span class="slider-more-button published">Read More ?</span></a>'; echo '</div>'; endwhile; if(function_exists('wp_pagenavi')) { wp_pagenavi(); } wp_reset_query(); endif; ?></div> </div><?php } } add_action('thesis_hook_after_headline','News');
Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] Pagenavi not working on Thesis 1.8.4The same thing is happening for me. It is only showing 1 page with 2posts and it is suppose to show 2posts and 2pages.
I ecode the shortcode into a php function which worked but im not sure why the other one is not working <?php getGallery(array(“id” => 1)); ?> .
The save settings is fixed but the videos are still not showing up on my page. And i used the php code option to use the plugin.
Thanks, it worked.