Patricia Gagnon
Member
Posted 1 year ago #
Hello! Please I need some help.
Here is my blog : cinqetdemi.com
I am using the theme UltraLight but I have problem with the page navigation not showing up on my Archive.php page.
I have next and previous page in my single_post, but I don't have them on the main page. I would like people to be able to navigate to my previous post. Right now, I only have 10 posts showing up on the main page.
Here is the code of my archive.php :
[please use the pastebin for codes longer than a few lines - code moderated according to forum rules]
Thanks!
Patricia Gagnon
Member
Posted 1 year ago #
Here it is :
[Code moderated as per the Forum Rules. Please use the pastebin]
the pastebin http://pastebin.com/ is a means to show code to others, without cluttering the forum.
click the link;
paste your code into the pastebin;
select your kind of code in the 'syntax highlighting' dropdown;
click 'sumbit';
note the new url at the top address bar of your browser;
post this address here.
advantages beyond a tidy forum:
a: it has line numbers;
b: it allows to create a copy to edit and reply with changes;
c: it keeps the code readable;
d: the syntax highlighting helps to spot errors.
Patricia Gagnon
Member
Posted 1 year ago #
There you go. Sorry about that alchymyth!
Here is the link for the HTML :
http://pastebin.com/qzGDBbaG
<?php if (is_paged()) : ?>
<div id="pagination" class="clear">
<span class="left"><?php posts_nav_link('','« Back','') ?></span>
<span class="right"><?php posts_nav_link('','','More »') ?></span>
</div>
<?php endif; ?>
this is a catch-22:
the first line conditional says:
the pagination navi will only show if you are on one of the paginated pages
http://codex.wordpress.org/Function_Reference/is_paged
try and remove the conditional code; i.e.
<?php if (is_paged()) : ?>
and
<?php endif; ?>
(ps: i am just curious - is that original from the theme?)
Patricia Gagnon
Member
Posted 1 year ago #
Thanks alchymyth!
I did what you told me but still not working...
And yes that is the original code from the theme, I would not be able to change such coding ;)
Patricia Gagnon
Member
Posted 1 year ago #
Oh! It works! I just realize that I had to apply this to my index.php page. I still had the conditional code so I removed it.
Thanks so much alchymyth.
binhluu
Member
Posted 1 month ago #
My theme do not show Page Navi. Please help me for this issue.
My site: htt[://quaygame.com
And here is files in themes:
Style.css: http://pastebin.com/MCJrQk4m
single.php: http://pastebin.com/vU1K3iff
page.php: http://pastebin.com/61QPi3kG
funtions.php: http://pastebin.com/2sXkZ6TZ