$10
WP - Page navigation not working...
I am using the pagenavi plugin from Lesterchan but it is also not working with the standard "previous page | next page" from the Arras theme.
URL: http://www.whatyouhavingforyourtea.com
Does anyone have any suggestions?
Lee Jackson | 05/09/10 at 5:49am
| Edit
(4) Possible Answers Submitted...
Note: Lee Jackson felt their question was unanswered, so we granted them a refund.
Note: Lee Jackson requested a refund. They offered no explanation.
-
Last edited:
05/09/10
7:25amOleg Butuzov says:line 82 (home.php)
'paged' => $paged,
replace by
'paged' => $wp_query->query_args['paged'],Previous versions of this answer: 05/09/10 at 6:03am | 05/09/10 at 6:04am | 05/09/10 at 6:15am | 05/09/10 at 6:23am | 05/09/10 at 7:10am | 05/09/10 at 7:25am | 05/09/10 at 7:25am
- 05/09/10 6:21am
Lee Jackson says:what are args?
- 05/09/10 6:24am
Oleg Butuzov says:Thay shoudl be null
<?php arras_render_posts(null, arras_get_option('archive_display'), 'archive') ?>
do you still geting same posts on different page numbers? - 05/09/10 6:35am
Lee Jackson says:Yes. Any page gives page 1 content.
I just remembered, that I customized the code a while back to not duplicate the post content on the homepage.
so the top panel displays post 1
the secondary panels display posts 2-7
the third section displays posts 8-onwards...
could this have messed things up? I notice on the subsequent pages it displays post 1 then from post 8 onwards...
I don't remember how I did this. I'm a bit of a novice!
This make sense?
- 05/09/10 6:38am
Oleg Butuzov says:Damn, your site make me filling hungry...
Logout please and take a look to the site like i see it. perhaps this is issue. - 05/09/10 6:43am
Lee Jackson says:Thanks i feel hungry looking at it too!
Logged out:
when I click any subsequent page ie. 4, 10, 15 etc I see the first post then post 8 onwards...
If I select a category ie Turkish, Spanish etc it works fine.
- 05/09/10 6:56am
Oleg Butuzov says:Ok! continue! backup your home.php
find this code in home.php
<!-- Featured Articles -->
<?php if ( ($featured2_cat = arras_get_option('featured_cat') ) !== '' && $featured2_cat != '-1' ) : ?>
<div id="index-featured">
<div class="home-title"><?php echo arras_get_option('featured_title') ?></div>
<?php
if ($featured2_cat == '-5') {
if (count($stickies) > 0)
$query2 = array('post__in' => $stickies, 'showposts' => arras_get_option('featured_count') );
} elseif ($featured2_cat == '0') {
$query2 = 'showposts=' . arras_get_option('featured_count');
} else {
$query2 = 'showposts=' . arras_get_option('featured_count') . '&cat=' . $featured2_cat;
}
arras_render_posts($query2, arras_get_option('featured_display'), 'featured');
?>
</div><!-- #index-featured -->
<?php endif; ?>
replace by this
<?php if ($wp_query->query_vars['paged'] == 0) {?>
<!-- Featured Articles -->
<?php if ( ($featured2_cat = arras_get_option('featured_cat') ) !== '' && $featured2_cat != '-1' ) : ?>
<div id="index-featured">
<div class="home-title"><?php echo arras_get_option('featured_title') ?></div>
<?php
if ($featured2_cat == '-5') {
if (count($stickies) > 0)
$query2 = array('post__in' => $stickies, 'showposts' => arras_get_option('featured_count') );
} elseif ($featured2_cat == '0') {
$query2 = 'showposts=' . arras_get_option('featured_count');
} else {
$query2 = 'showposts=' . arras_get_option('featured_count') . '&cat=' . $featured2_cat;
}
arras_render_posts($query2, arras_get_option('featured_display'), 'featured');
?>
</div><!-- #index-featured -->
<?php endif; ?>
<?php } ?>
cheers! - 05/09/10 6:56am
Oleg Butuzov says:oops! code is broken!
- 05/09/10 7:06am
Oleg Butuzov says:forgot i write there!
- 05/09/10 6:21am
-

Last edited:
05/09/10
6:03amFrank Mulder says:Probably the settings.
Go to:
Settings > Reading >
- Blog pages show at most XX posts
- Syndication feeds show the most recent XX posts
Set this to the same number as you Arras Theme settings.
That probably works- 05/09/10 6:47am
Lee Jackson says:I amended this a while back.
The Arras theme gives you options for displaying content.
The homepage structure is split into three sections. However, the default with Arras theme would duplicate posts within those sections so I amended the code somehow (can't remember how ;)).
Header: I display post 1 only (ie the latest post)
Second section: I display posts 2-7
Third Section: I display posts 8-onwards
Could this be the problem? - 05/09/10 7:14am
Frank Mulder says:The template shouldn't be the problem,
I remember having such a problem on another theme,
just editted the numbers in Settings > Reading and it worked afterwards.
hmm, hopefully this is a reply to the right comments, but unclear.
- 05/09/10 6:47am
-

Last edited:
05/09/10
6:20amErez S says:Maybe you are using query_posts? If so,add this code to the end of the query before the );
&paged=".((get_query_var('paged')) ? get_query_var('paged') : 1)
So it would be something like that:
query_posts("category_name=somecat&paged=".((get_query_var('paged')) ? get_query_var('paged') : 1));
Enjoy- 05/09/10 6:48am
Lee Jackson says:What are query posts? I'm a bit of a novice!
;) - 05/09/10 6:51am
Erez S says:give me the index.php file of your template
- 05/09/10 6:53am
Lee Jackson says:index.php is blank.
just re-downloaded Arras theme to double check and it's blank there too.
- 05/09/10 6:59am
Erez S says:What files do you have in your theme directory?
- 05/09/10 7:02am
Erez S says:wordpress.org/support/topic/348388
- 05/09/10 9:30am
Erez S says:I have installed the theme and it is working great for me,so can you send me the theme you use after you edited it? And if you can provide me the FTP details it would be great
- 05/09/10 6:48am
-

Last edited:
05/09/10
8:35amLew Ayotte says:Which version of the Arras theme are you using?
- 05/09/10 8:45am
Lew Ayotte says:The latest release version 1.4.2 seems to work fine for me... can you private message me your WP UN/PW or include the code for your home.php file?
Thanks.
Lew
- 05/09/10 8:45am
This question has expired.
Current status of this question: Refunded





