I can't retrieve the data
-
Hi I’m trying to use the plugin, but I can’t retrieve de custom field from the categories.
It shows on the edit category page but I’m trying to get it in the front-end and I’m not capable of it.
I tried the methods that tells the FAQ but it didn’t work either.
var_dump(true, get_term_by(‘slug’, ‘course’, ‘category’));
$categories = get_categories($args);
foreach($categories as $category) {
echo ‘<p>Category: term_id ) . ‘” title=”‘ . sprintf( __( “View all posts in %s” ), $category->name ) . ‘” ‘ . ‘>’ . $category->name.’ </p> ‘;
}When I execute the var_dump shows me all the data of that category but didn’t shows me custom field, and always tell me the string is 0.
The topic ‘I can't retrieve the data’ is closed to new replies.