Skip Navigation

[Resolved] CPT in classic category

This support ticket is created 6 years, 9 months 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Author
Posts
#614700

Hello,

I would like to use a theme that shows in slide form the last articles of a category.
These themes only recognize basic WordPress categories and do not recognize CPT categories.
To be able to use these themes, I created categories in WordPress articles and added them to the CPTs that I wanted.
If I go to the archives of these categories, I have my articles.
However, when I activate the theme, it does not find articles.

A priori, I must be able to make appear the articles thanks to pre_get_post.
Could you help me ?

#614817

It depends how the Theme reads the Database, what data it's looking for.
If the just look for any post with Taxonomy "Category" then it will return all of them.

Seems your theme restricts the query to Category and Post (native posts).
Then, there is nothing we can change here, instead the theme's support could advise how to include other Custom Post Types in this query.

I could make some tests to confirm this, or you can perform them as well:

1. Register a Custom post Type that supports the native Category Taxonomy manually in your Install.
You can use a tool like hidden link
2. Is this Post Type now queried by the Theme?
If so it means the conflict is with Types alone and then I would need a copy of this Theme, so to debug the issue
If not, then the issue has to be solved by the Theme.

Please can you let me know the outcome of above tests, or/and supply me with a copy of the theme and the steps required to achieve the problem?

Thank you

#615212

It is a theme's problem...