get_category functions

Posted in: Newspaper
Post count: 44

Hello Tagdiv,
I’m trying add all taxonomy in get_category functions (Currently it get only category Taxonomy)
I have changed code
Line No 233 in wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php

Replaced
$categories = get_the_category( $this->post->ID );
With
$taxonomies = get_taxonomies();
$categories = wp_get_post_terms($this->post->ID, $taxonomies);

It shows All Taxonomy but respective links are not working. href=”” shows blank

Post count: 35449

Hi,
Can you please provide a link to your website to inspect the problem with the link that is now shows as blank?
Thank you!

Post count: 44

Frontend Without Code Edit
This is front end without Code Edit
Custom Taxonomy Destination
I want Display Custom Taxonomy like category
Code Edit
This is Code Edited
Display Taxonomy
This is Error
Blank Link
Blank Link

Post count: 35449

Hi discovermh,
I understand what you want to achieve. The thing is that the categories have a different structures and the link is added to the categories. But if your taxonomies have a taxonomy page, then it is possible to be a way to set it up with a link to it.
What I can suggest is to use var_dump() to see if you get a value for the get_category_link – https://i.imgur.com/ckwI4CC.png
Thank you!

Post count: 44

Can you make the changes so that all taxonomy is displayed after the main taxonomy category?
For the desktop, we displayed using tag div composer shortcode. but in Mobile Theme Plugin it is not possible to edit code like the composer drag and drop.

Post count: 35449

Hi,
To can try to help you I will have to have access to what you have done so far. If you agree with this, please contact us by email at contact@tagdiv.com, include this topic in the email, and make a full backup of the site, afterwards, I will need wp-admin and FTP access.
Thank you!

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