Cloud Templates for Custom Post Type and Taxonomy

Posted in: Newspaper
Post count: 36

We use the Magazine PRO theme for out blog. Everything look as expected.

We however also have a NEWS plugin that has created a custom post type and taxonomy of its own, called News.

The category and post details page of our news plugin appear really poorly. The fonts etc also are different from the rest of the website.

We cant seem to find the option that LINKS the NEWS plugin post type and taxonomy to the “Single Post Template – Magazine PRO” and the “Category Template – Magazine PRO”.

We tried reviewing your documentation and its very confusing. Can you give us bullet point steps and let us know exactly how we can achieve this?

Post count: 36

Just to add to my last response, the ARTICLE DISPLAY VIEW appears empty for all. Any idea why?

https://imgur.com/h0CUMVe

Post count: 35449

Hi,
Unfortunately, for the moment the cloud template can not be used for custom post types, for those you can use only the standard templates -> https://forum.tagdiv.com/custom-post-type-support/ that it is way the article display view is not appearing for the custom post types.
Thank you!

Post count: 36

This unfortunately is a deal breaker. Is this on your roadmap?

How can we modify the view of the “standard template” to match that of the other cloud templates?

Post count: 21065

Hello @vikasnangia!

No, but we will take in consideration your query.
The Standard Templates can be modified only by coding or some basic settings from the theme panel.

Thank you for understanding!

Post count: 16

This is a deal breaker for long time. it has been asked by many individuals. having it on roadmap and some timeline would be helpful.
If not possible, then some example module that can be followed to manage CPT with cloud template, as it was for CPT using standard template.

Post count: 21065

Hello!

Please note that Cloud library templates do not work with CPTs.

Thank you for understanding!

Post count: 36

There is a difference between Cloud Templates not supporting custom post types, and your theme not supporting custom post types.

How can we make custom post types work with your theme, if we decide not to use Cloud Templates?

Post count: 21065

Hello @vikasnangia!

Please check this documentation: https://forum.tagdiv.com/custom-post-type-support/
Note that for default templates, you need to have the Standard Pack plugin installed and active.

Thank you!

Post count: 38

Is there any sort of workaround we can program ourselves that will allow us to use cloud templates with custom posts and taxonomies?

I have found that if you create a taxonomy page in the theme so “taxonomy-name.php”. Inside this theme, I have taken the shortcodes from the cloud template and it does load up the CSS correctly but I am unsure how to modify this to query posts for the taxonomy as the data showing is incorrect. Replacing category_id=”‘.$term->term_id.'” will populate some of the shortcodes with the correct data but not all of the shortcodes have this argument. I could add it to the theme code but it would lock me out of updates in the future then, so not ideal.

Considering how easy this was to do, surely it isn’t a massive obstacle to add cloud template support for custom taxonomies and posts?

  • This reply was modified 4 years by dano1066.
Post count: 21065

Hello @dano1066!

We will take in consideration your query for the future updates.

Thank you for understanding!

Post count: 38

Can you be a little more helpful here? It is quite frustrating that something is so easy to implement manually but cant because it looks like the code was actively written to prevent it.

tdb_state_template::get_template_type()

Is what prevents most pages working correctly. If this could be overridden somehow, we could return “category” for other tax pages to ensure the correct data is shown or pulled from queries.

private $category_obj = '';

Is another issue. If this were marked as protected, we could extend the class and modify the behaviour. If i change this to protected, it will break my site when an update is released and the scope changes back to private.

I don’t understand why the option, which would be easy to leave in the code, is shut off for people to expand upon. Fair enough if you guys don’t want to write the code to support it but why actively block others from doing it for their own personal websites?

Post count: 21065

Hello @dano1066!

Yes, the code was implemented like this and there was no option build to extend it and make custom blocks.

Thank you for understanding!

Viewing 13 posts - 1 through 13 (of 13 total)
The forum ‘Newspaper’ is closed to new topics and replies.