Bug: Breadcrumbs’ Taxonomies title on CPT is always ‘attribute’

Posted in: Newspaper
Post count: 124

Hi Calin,

On Custom Post Type, there seems to be a bug in the Breadcrumbs block – in the Taxonomies section hover title is always displayed as ‘attribute’.

Looks like it is hard-coded and does not change to the respective Taxonomies name.

< a title=” attribute ” class=” tdb-entry-crumb ” ….. >

(!) As previously discussed, this post is only for Calin.

Other TD team members, please do not respond.

Thank you.

Post count: 35449

Hi Alex,
Normally the breadcrumbs taxonomies title on CPT should be the taxonomy name, (the code is similar with the one for normal articles). The results should be – https://i.imgur.com/HKhAYmm.png if for you is not the same, can you provide some examples to try to recreate the problem?
Thank you!

Post count: 124

Hi Calin,

Thank you for your response.

To recreate the issue:

1. Custom single post type is a Single Event from this plugin, Events Manager by Pixelite.

I believe your team previously tested with this plugin, when I reported this issue that was fixed.

2. In WP Dashboard go to Events > Settings > Pages > Event Pages > Display events as Posts.

3. Create a new event (custom post). When creating the event, you can also create a new Event Category (custom tax). The same way as for normal posts.

4. Cloud Templates > CPT/Taxonomies > Events > Single – add a blank template and place breadcrumbs block in it.

Enable Taxonomies with cpt: event-categories Screenshot.

5. Go to the Event that you created (custom single post page) and hover the Category name (custom post taxonomy). The tooltip is meant to show Custom Category Name (in the same manner as it shows for normal single posts), but it shows the word “attribute”. Screenshot.

6. To my understanding it has something to do in this file:
td cloud library >> shortcodes common >> tdb_breadcrumbs

switch( tdb_state_template::get_template_type() ) {
case ‘cpt’:
case ‘single’:
$breadcrumbs_array = $tdb_state_single->post_breadcrumbs->__invoke( $this->get_all_atts() );
break;

(!) As previously discussed, this post is only for Calin.

Other TD team members, please do not respond.

Thank you.

Post count: 35449

Hi,
I see.
I checked in the theme code for that section and there is not hard-coded – https://i.imgur.com/wbg5xYX.png but, the attribute can be set custom on element – https://i.imgur.com/9Bl9CIz.pnghttps://i.imgur.com/3EahYiS.png
Now checking the problem following the above indications I saw that the breadcrumbs element no longer display all the fields for CPT – https://i.imgur.com/sQyUAf6.png and the problem you mentioned appears – https://i.imgur.com/sLWVMpd.png so I search in the theme files and the only place that I fined the title_attribute = attribute was on this file https://i.imgur.com/r66A7nR.png but is not change the attribute that is now on the cpt taxonomy in breadcrumbs, so I send this problem to our developers to further check it.
Thank you!

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