tctc
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: pagination problem with last sethere you are and thanks a lot for that!
[Query moderated as per the Forum Rules. Please use the pastebin in future. I’ve created a pastebin link for you this time.]
Forum: Fixing WordPress
In reply to: pagination problem with last setAnd this is the result of the 17th page of the category with 330 posts:
QUERY STRING: paged=17&category_name=mag%2Feventi-contest
Forum: Fixing WordPress
In reply to: pagination problem with last setThis is for the category with 26 posts:
QUERY STRING: category_name=mag%2Feventi-contest
This is another categoru with more or less 330 posts:
QUERY STRING: category_name=mag%2Feventi-contest
I found other relevant problem like if I use
pagination($additional_loop->max_num_pages);
then I get a certain number of links which are less than the supposed number of links that the number navigation should display… if i use:pagination($wp_query->max_num_pages);
I get more number links but lasts of them does not work even if the number ok links which should be displayed is correct (like 33 for eventi-contest category which contains more or less 330 posts). But if I click link number 25 or 30 I get always the same error “No article sorry”……Forum: Fixing WordPress
In reply to: pagination problem with last setI’ve taken the function script that is currently used from this page:
https://design.sparklette.net/teaches/how-to-add-wordpress-pagination-without-a-plugin/
Forum: Fixing WordPress
In reply to: pagination problem with last setok… the result is MAX PAGES: 2
It is not correct: there are 6 posts missing which would make the third page with following url: ……/page/3
Forum: Fixing WordPress
In reply to: pagination problem with last setWell… just tried without success… I have tried both:
<?php if (function_exists("pagination")) { pagination($wp_query->max_num_pages); } ?>
in this case the last link to the last page containing the last 6 posts (out of 26) is not displayed…
With this code:<?php if (function_exists("pagination")) { pagination($additional_loop->max_num_pages); } ?>
the last link to the last page containing the last 6 posts (out of 26) is displayed but if clicked it does return “No article available” and the page does not show the last 6 posts….
I’m getting creazy… such a strange behaviour… no idea…. ??
Forum: Fixing WordPress
In reply to: pagination problem with last setIt writes 26 like the total number of posts in this category.
It misses the last page where there are less than 10 posts. I think this is the problem which creates the page with “No articles”
It happens for every categories whit this query and ‘pagination’ function…Forum: Fixing WordPress
In reply to: pagination problem with last setdone! sorry…. there was user & oass for the accessing php directory….
anyway…
https://www.snowboarditaliamag.it/mag/racconti/page/3 this is the url which would be supposed to display the latest 6 posts of the 26… it is no working as you can see… with your changing now the link at the third (last) page isn’t showed but latest 6 posts are missing…Forum: Fixing WordPress
In reply to: pagination problem with last setthank you!
OK now it works but not completely. It misses the last 6 posts of the set. In total there are 26 posts under this category but the navigation finishes at 20 and not showing the other 6.
…
Well… if you wanna have a look:https://www.snowboarditaliamag.it
Try to go from the menu in MAGAZINE > RACCONTI
thank you again!
Forum: Fixing WordPress
In reply to: pagination problem with last setThank you for the answer! I had a look in the function page where the pagination function is stored. There is the max_num_pages inserted this way:
[Code moderated as per the Forum Rules. Please use the pastebin]
Any idea? Please help… getting crazy!
ThanksForum: Fixing WordPress
In reply to: redirect empty categories to sub-categoriesThank riversatile for the answer!
this is what I’m trying to achieve but I miss how to write the
the PHP request that call the subcategoryAnyone has an idea on how to write this php code?