get_term_link() takes two arguments
-
I’m doing a taxonomy query and I ended up with 15 results, no Load More button, no infinite scroll, and no footer. After I turned on error reporting, I saw “Catchable fatal error: Object of class WP_Error could not be converted to string in ajax-load-more.php on line 530”.
Line 530 was doing get_term_link with one argument (the term id), but a Google search says it wants the taxonomy as well.
Changing line 530 to
$canonicalURL = get_term_link($tax_id, $taxonomy);
solved the problem. It’s possible this is due to my WP install being outdated.Awesome plugin — it’s saving me a lot of time on a complicated page!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘get_term_link() takes two arguments’ is closed to new replies.