Wordpress Tag Pages Navigation

Scorpion Ghost

Elite Member
Executive VIP
Jr. VIP
Joined
Mar 22, 2013
Messages
9,153
Reaction score
10,492
Hey guys. I have a problem with my wordpress fiverr-clone site's Tag Pages navigation, and I can't seem to get help about it.

The problem is that on Tag Pages, if there's more than 1 page you have the numbered navigation (PageNavi plugin). However, if I try to switch to page 2, 3 etc, I get a 404 error. And by the way, the navigation works on other pages (homepage, category pages, etc).

I asked on the forum where I bough the theme, but those guys are pretty useless. All I was told by the developer was, and I quote:

"i think you need to define tag.php"

So he thinks. He's not sure. And even so, define what? Fucking useless cretin!

I also asked on Stackoverflow and the Wordpress forums, and I got no responses. So now I ask here in hopes that someone can help.

I can't share the site publicly, because I would be self-promoting my site if I shared it here. I can share it with you in a PM of course if you think you may be able to help me.

Thank you.
 
Hmm, well it should not be "needing to define tag.php". It sounds more like an issue with pagenavi.
https://wordpress.org/plugins/wp-pagenavi/installation/ would most likely need to be done in your tag template and not just for the other page templates.

Hopefully that'll put you on the right path, I haven't messed around with tags or pageNavi too much.
 
Hmm, well it should not be "needing to define tag.php". It sounds more like an issue with pagenavi.
https://wordpress.org/plugins/wp-pagenavi/installation/ would most likely need to be done in your tag template and not just for the other page templates.

Hopefully that'll put you on the right path, I haven't messed around with tags or pageNavi too much.

Thanks nocare. I'll check that out.

But see, the pagenavi navigation Shows on tag pages, it just won't work switching to page 2, 3, etc.
 
Sure thing. You probably do need to create a tag.php to solve this most easily.
According to this, if there isn't a tag.php it uses archive.php: https://developer.wordpress.org/files/2014/10/wp-template-hierarchy.jpg
If I read that chart right.

archive.php just might be handling pagination different than tags yet trying to work with tags and failing. It sucks that you paid for this theme yet they won't do a (likely)simple thing like this.
 
Sure thing. You probably do need to create a tag.php to solve this most easily.
According to this, if there isn't a tag.php it uses archive.php: https://developer.wordpress.org/files/2014/10/wp-template-hierarchy.jpg
If I read that chart right.

archive.php just might be handling pagination different than tags yet trying to work with tags and failing. It sucks that you paid for this theme yet they won't do a (likely)simple thing like this.

It's crazy that this theme's been out for like 3-4 years and this issue is there. I mean, hundreds of people have bought the theme, has not 1 of them run into this problem and contacted the developers to fix it? I don't know. Although, almost all of these themes I've seen are started and never finished sites. And the few that are decent, I guess if they ran into the problem they had a guy or knew how to fix it themselves and never bothered informing the developer of the theme about the problem.

Anyway...

The theme does have a tag.php file actually. And in that file there's like 3 lines of code related to the pagenavi plugin.

In fact, the developer just responded on the theme's support forum, after I posted an angry reply with a few "fucks" mentioned. He asked me to be polite, and send him the credentials and he'll fix it in 12-24 hours. I mean, I hate having to get out of line and use nasty words, but when I'm ignored for days, and waste hours upon hours trying to fix and figure out a problem that shouldn't even be there in the first place, and if it was, I should've been helped immediately on the same day, not 5 days later.

I'll inform what happened. My hopes for a solution are up now, but not 100% to be honest...
 
Pm your credentials? He should updating the theme and pushing it out to everyone who bought it :/
But honestly you're lucky he's willing to fix it at all. A lot of these theme devs just crank out a bunch of themes and offer no support.
I've had to "fix" a lot of premium and free themes doing client stuff, and I completely stopped bothering to interact with those guys. Just a lot of bad devs out there with quality design skills/people as their main selling point...

It's also potentially an issue with pageNavi itself, and devs generally won't support issues with other guys plugins. Which is fair.. but it is part of their "developer debt".

-
If he doesn't manage to fix it in like 2 days holler at me, I'm reasonable and it really sounds like a small issue to fix.
 
Last edited:
Pm your credentials? He should updating the theme and pushing it out to everyone who bought it :/
But honestly you're lucky he's willing to fix it at all. A lot of these theme devs just crank out a bunch of themes and offer no support.
I've had to "fix" a lot of premium and free themes doing client stuff, and I completely stopped bothering to interact with those guys. Just a lot of bad devs out there with quality design skills/people as their main selling point...

It's also potentially an issue with pageNavi itself, and devs generally won't support issues with other guys plugins. Which is fair.. but it is part of their "developer debt".

-
If he doesn't manage to fix it in like 2 days holler at me, I'm reasonable and it really sounds like a small issue to fix.

Wow. I like you. I know right? I told him in the PM I sent him with the credentials that he should fix it, and then post a thread on the forum to inform everyone of this problem/solution. And that he should update the theme where people go to download it for any new buyers, and old buyers that go to download it again.

I can't believe that these guys are in business. I mean, how? They're pretty useless...

Well, before I bought the theme I asked if there's support, because I assumed I'd need some help, I just never imagined the theme itself would have errors. And I was told there is support. In truth, there is, but the support is for simple shit. Once you get down to functionality, forget about it.

Anyway, this is the first time I ever bought a theme, and so it's a learning experience. What have I learned? I don't know, don't buy shit from Romanians maybe... :D haha

Man, if I could I'd hire you, throw the 3-4 problems I have at you, pay you at the end of it, and be good. But, I can't afford it. I invested $120 for the them and $15 for the domain name for 1 year. My living and money situation is pretty bad, so I can't afford to spend shit. However, if it comes down to the point where they can't fix it, and I can't fix it, I'll come to you.
 
Well, the developer fixed the problem. So now the navigation on the tag pages works, but now the post thumbnails on the tag pages don't show... :breakpc1:


I replied to him on the forum, and now again I am waiting, and waiting, and waiting...
 
Thanks for the kind words man. Did the thumbnails work on the old tag.php and do you still have it?
 
Thanks for the kind words man. Did the thumbnails work on the old tag.php and do you still have it?

Yes and yes...

I spent a few hours, after he "fixed" it, to pinpoint the "fix." And I did. He put this code in tag.php:

Code:
add_filter('pre_get_posts', 'Pricerr_g_query_post_type');
function Pricerr_g_query_post_type($query) {
  if(is_tag()) {
    $post_type = get_query_var('post_type');
                if($post_type)
                    $post_type = $post_type;
                else
                    $post_type = array('post','job'); // replace cpt to your custom post type
    $query->set('post_type',$post_type);
                return $query;
    }
}

When that code is there, the Tag Pages navigation works, but the Thumbnails Do Not! And not only for the posts on the tag pages, but also for the 2 widgets in the footer, the thumbnails don't work (but only on the tag pages). The rest of the site works fine.

When I REMOVE this code. The Thumbnails come back, but the original problem is there again, and the navigation doesn't work. The rest of the site works fine.

I have the old codes, yes.
 
This has been fixed. MrBlue fixed it for me. The best!

Thank you nocare for your time too.
 
So this problem was fixed, but not entirely.

In the end the navigation on the tag pages was working but the posts and footer thumbnails were not showing. MrBlue fixed it, and the thumbs started showing for the posts. But what I didn't notice is that the widget (2 widgets in footer) thumbnails were still not showing.

So I asked MrBlue to take a look at it, and he said he would. Since then I've asked him a few more times if he could check it out but he's not responding. No hard feelings. I'm sure he's a busy man, and since I can't pay him, I can't expect anything. I'm grateful he fixed what he did fix for me.

But now I would like to start promoting my website, and after all the work I'd put in I refuse to promote it if everything is not working correctly! Well, I have 2 widgets on the footer on Tag pages which show no thumbnails, and it's driving me crazy. I tried looking at the code MrBlue used to fix the posts thumbnails, but I just don't possess the knowledge to fix this.

I never asked for any spoon feeding or favors from anyone, but could someone help me with this, please? I've put all my hopes on this website now and I really, really want this fixed.

What I can give you are eBooks, iMacros, the Pricerr theme even that's the theme of my website, social media followers/likes. Those are some things I can offer if someone could help me out.

Read this and you'll understand where I'm at now: http://stackoverflow.com/questions/31911403/tag-pages-footer-thumbnails

Thank you.
 
Okay guys, done. MrBlue fixed it. He's very fast to fix this stuff. Really great.
 
Why are you using a plugin to handle pagination? Your theme should do the pagination. Also, are you using noindex on tag pages? They are spamming in my opinion.
 
So this problem was fixed, but not entirely.

In the end the navigation on the tag pages was working but the posts and footer thumbnails were not showing. MrBlue fixed it, and the thumbs started showing for the posts. But what I didn't notice is that the widget (2 widgets in footer) thumbnails were still not showing.

So I asked MrBlue to take a look at it, and he said he would. Since then I've asked him a few more times if he could check it out but he's not responding. No hard feelings. I'm sure he's a busy man, and since I can't pay him, I can't expect anything. I'm grateful he fixed what he did fix for me.

But now I would like to start promoting my website, and after all the work I'd put in I refuse to promote it if everything is not working correctly! Well, I have 2 widgets on the footer on Tag pages which show no thumbnails, and it's driving me crazy. I tried looking at the code MrBlue used to fix the posts thumbnails, but I just don't possess the knowledge to fix this.

I never asked for any spoon feeding or favors from anyone, but could someone help me with this, please? I've put all my hopes on this website now and I really, really want this fixed.

What I can give you are eBooks, iMacros, the Pricerr theme even that's the theme of my website, social media followers/likes. Those are some things I can offer if someone could help me out.

Read this and you'll understand where I'm at now: http://stackoverflow.com/questions/31911403/tag-pages-footer-thumbnails

Thank you.

Thanks for the case study
 
Why are you using a plugin to handle pagination? Your theme should do the pagination. Also, are you using noindex on tag pages? They are spamming in my opinion.

Well, the theme comes with a recommendation to install this plugin for navigation. And I noticed the php files where navigation shows have some sort of code, like, <? <wp_pagenavi> <php>

You know, something like that which I assume calls the pagenavi, assuming you have that plugin installed...

That being said, even if I wanted to change that I would have no idea how. I'd start by removing the plugin, and I guess next step would be to remove those codes (wp_pagenavi) from all those php files that have it. And then what? To make my theme do the pagination I'm sure a piece of php code would be required to call the correct page and call the correct post and be able to switch pages. Honestly, I haven't got the slightest idea how to make all that happen... I can make an HTML + CSS Dropdown menu though XD hahaha

And of course, yes, Tag pages are noindex. But people can land on my tag pages while browsing the site, and if anyone does, I don't want them to reach the footer and see stuff with no thumbs. Generally, a good site should have NO broken NOTHING! No empty links or anything like that. Everything must work Perfectly, if you're seriously about it. That's my trip!
 
Thanks for the case study

Well, you're welcome. Honestly, this will only help someone using the exact same theme, and it's not the full solution either...

But, that's more help one will get about the issue than one will get from the theme's support forum/developer...
 
Back
Top