• Resolved vagelis_artware

    (@vagelis_artware)


    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]

Viewing 1 replies (of 1 total)
  • Thread Starter vagelis_artware

    (@vagelis_artware)

    Turns out, the new ACF has already intergration with Visual Composer. I was using the element of ACF instead of ACFVC. That’s why your hooks didn’t work for me. I was using the wrong element!

Viewing 1 replies (of 1 total)
  • The topic ‘ACFVC – Checkbox’ is closed to new replies.