Skip Navigation

[Resolved] small bug on view.

This support ticket is created 6 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 6 replies, has 2 voices.

Last updated by Akhil 6 years ago.

Assisted by: Nigel.

Author
Posts
#1127980

Hi Nigel. good day.

this is my main cpt page:hidden link

i have this bugging issue , if the sub categories have no entries, its not loading the sub categories taxomony title with link as well.

this is something new for me.

check here:
loading fine with 1 listings: hidden link , the top view "subcategories view" loading fine .

BUT look at this hidden link - its showing the not found message.

what could be the issue ?

#1128120

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

Could you take a screenshot of the body and wellness link and draw on it where the output is unexpected.

I have access to your site from another thread, and I'll take a look at how this is set up (I suspect I know what the issue is), but I want to make sure I'm looking at the right thing.

#1128133

Hi Nigel.

The body & wellness has sub category : spa, gym , it should be displaying this at the subcategory view but its seems depended on the post count. It not outputing the sub categories if the post count is '0'.

the output is EXPECTED at the view name : rd subcategories , below that text.

Pls let me know if you need more details or screenshots.

Thanks

#1128179

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Sorry, the site credentials don't work any more, let me set up a private reply for you to update.

#1128185

Oh btw , i am loading the views in the generatepress element header : its here:
hidden link

so i load the main categories on the post archive & sub categories on the taxonomy archive page .

#1128322

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

So I can see the issue on your site.

I tried to reproduce it on my local test site. I added another top-level sector ("Health") and then add a couple of sub-sectors. There are no posts with those terms assigned.

But it doesn't affect the visibility of the View displaying the sub-sectors, they are displayed even though there are no matching posts.

So I suspect the issue on your site either relates to your custom rewrite rules, or to displaying the View using the Generate Press header.

Could you test and see whether you still see the problem when you disable the custom rewrites, and if you add the View to the custom archive instead of in the Generate Press header?

#1128325

Thanks,
that make sense as the view is outside of the archieves.
anyway i'm not going to spend time on this .
reason being if the category has zero listing , it have to be deleted or convert to tags instead. cheers