Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error retrieving term link in Taxonomy module: cherry-satellite-utilit.php #179

Open
doppioTS opened this issue Jan 8, 2018 · 0 comments

Comments

@doppioTS
Copy link

doppioTS commented Jan 8, 2018

Modify code on cherry-satellite-utilit.php

Modify is necessary to use it in module Taxonomy of PowerBuider: in module is possible to select various type of taxonomy but his work only with post 'category': module display correctly image and name of taxonimy but link is broken.
This is actual code
public function get_term_permalink( $id = 0 ) {
return esc_url( get_category_link( $id ) );
}

And this is correction
public function get_term_permalink( $id = 0 ) {
//return esc_url( get_category_link( $id ) ); // this return link only on 'category' taxonomy
return esc_url( get_term_link( $id ) ); // this returrn link on all taxonomy
}

This work with all taxonomy

@doppioTS doppioTS changed the title Error retrieving term link in Taxoniomy module: cherry-satellite-utilit.php Error retrieving term link in Taxonomy module: cherry-satellite-utilit.php Jan 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant