ACFVC – Checkbox
-
There are 4 portfolios at the bottom of the page, above the footer.
These 4 portfolios comes from custom taxonomy: portfolio_category
Visual Composer has an element named “Post Grid” where I can show posts from custom taxonomies. (https://imgur.com/a/rOhp8O1)
Inside this “Post Grid” element, there is an option to modify the way posts are appearing in the front-end (https://imgur.com/a/OkL4Uvn). This “123” template is the one I made inside the Grid Builder of VC (https://ibb.co/eqf8Ke). With this template, i can show the image, title and the category name of the current portfolio (as shown in the homepage).
This is the Custom Field: https://ibb.co/nwGyKe
It uses a Checkbox field type.This is the options I choose with ACFVC: https://ibb.co/dvEw5K
But in the front-end, I see the category ID, not the category name. I looked the hooks you are providing and there is this: add_filter(‘acfvc_checkbox’,’function_name’,10,3);
How can I use this? Whatever I tried nothing happened.
I tried a simple interaction like this:add_filter( ‘acfvc_checkbox’, function( $atts ) {
$atts = ‘22222’;
return $atts;
} );But nothing showed up.
How can I show the category name instead of category ID ?Thanks in advance.
The page I need help with: [log in to see the link]
- The topic ‘ACFVC – Checkbox’ is closed to new replies.