Get value of custom field in category admin
Question
I am using cfs-custom-category-fields plugin.
In their documentation it says that to get the value of a custom field in category you should use CfsTaxonomy::get('field_name')
This works well when I am in a category page, like category-24.php
.
But it doesn’t work in index.php
.
How do I get the value in a non-category page? I tried something like this:
$cat_id = 29;
if($cat_id=29){
echo CfsTaxonomy::get('arata_in_listare');
}?>
But it doesn’t work.
I suppose I need to create a category page-like environment.
0
categories
4 years
2020-02-16T08:39:07-05:00
2020-02-16T08:39:07-05:00 0 Answers
71 views
0
Leave an answer