greencode
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] [Plugin: Breadcrumb NavXT] Compatibility request with WPMLThanks. I really appreciate you taking the time to get in touch with them.
Forum: Plugins
In reply to: [Breadcrumb NavXT] [Plugin: Breadcrumb NavXT] Hierachy in breadcrumbThanks. I’ve decided to go with using Tags as well as Categories
Forum: Fixing WordPress
In reply to: Small PHP problemSorry, one of those days – very obvious what I should have done! Thanks so much for your help with this – really appreciated.
Forum: Fixing WordPress
In reply to: Small PHP problemThanks so much for this.
Just one question. It now doesn’t have any spacing i.e. it comes out as:
View allArtProjects
How do I go about adding the spaces?
Forum: Plugins
In reply to: [Breadcrumb NavXT] [Plugin: Breadcrumb NavXT] Hierachy in breadcrumbWhen you say using a mixture of taxonomies do you mean categories and tags?
Forum: Plugins
In reply to: [Breadcrumb NavXT] [Plugin: Breadcrumb NavXT] Hierachy in breadcrumbThanks for your reply.
Actually what I have is this:
Fruits (ID 11)
– Citrus Fruits (ID 12)
Featured (ID 103)
– Featured Sub (ID 104)So what it’s doing is finding the first hierarchy which is Featured Sub and then using that in the breadcrumb trail.
Is there no way to specify the hierarchy either using the plugin or another plugin?
Forum: Fixing WordPress
In reply to: Different number of posts on category page 1It really is very odd. I’ve checked the functions.php file and there’s nothing in there that would be having any influence on things. Tried those bits of code you mentioned and they all basically worked in the same way but didn’t help with the last page problem.
Very strange indeed!
Forum: Fixing WordPress
In reply to: Different number of posts on category page 1Just done a little bit of testing – using your latest code and here’s what’s happening…
If I edit the following code:
$paginated_total = 20to the same amount that shows in the Admin > Reading > Blog pages show at most total then all works well i.e. 5 posts on first page and 20 on subsequent pages. If, however, I set the code above to something less than is specified in the WP admin then the last page doesn’t work. i.e.
paginated_total = 20 / reading settings = 20 > Works correctly
paginated_total = 19 / reading settings = 20 > Page not found
paginated_total = 21 / reading settings = 20 > Works correctlyForum: Fixing WordPress
In reply to: Different number of posts on category page 1Hi. Yep, that’s the one I used i.e. replacing all the content of my cat-news.php file with the code you provided. It’s very odd that the last page number exists but there’s no page to be found even though there should be another 16 posts to display?
Forum: Fixing WordPress
In reply to: Different number of posts on category page 1It’s very strange. The page numbers show correctly but clicking on the last page number just takes me to the page but with a Page not found, even though the penultimate page is not the end of the post count i.e. there’s 16 posts missing from the end which should be on the last page?!
Forum: Fixing WordPress
In reply to: Different number of posts on category page 1I have the header: http://pastebin.com/sdvKdrDK
Then the category content: http://pastebin.com/Ed9yTa7a
then the footer: http://pastebin.com/jqvyFcyF
Forum: Fixing WordPress
In reply to: Different number of posts on category page 1Ahh, thanks for the heads up.
Here’s the code: http://pastebin.com/Ed9yTa7a
Forum: Fixing WordPress
In reply to: Different number of posts on category page 1It’s a custom theme based on the toolbox theme. Here’s what I use for my cat-news.php category page to display the News category items.
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
Two problems now…
1. I have the first post styled differently to the other posts, so unsure how to include that in the code you kindly provided.
2. Just quickly adding your code appears to work but then if I click on the last page in the pagination then I get a page not found.
Thanks once again for your help with this – I really wouldn’t know where to start with this. I’ve trawled the internet high and low and couldn’t find anything similar.
Have you added the breadcrumb as per the instructions i.e.
<div class="breadcrumbs"> <?php if(function_exists('bcn_display')) { bcn_display(); }?> </div>If so, then you’ll just need to open up your theme’s stylesheet and add a few things. Here’s a few you could try:
.breadcrumbs { color: #999; } .breadcrumbs a { text-decoration: none; }Forum: Fixing WordPress
In reply to: Different number of posts on category page 1Forgive me. I’m a little lost with what solution on that page I am looking at? Do I still keep the function in place from above?