• Resolved jonatan2aocubo

    (@jonatan2aocubo)


    I would like to filter custom_taxonomy according to the current page.

    Ex:
    [post_image_checkbox produtos_cotacao categoria_taxonomy:CURRENT_TAXONOMY image-size:thumbnail]

    If page is: Mochilas – change categoria_taxonomy:mochilas.

    Is possible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jonatan2aocubo

    (@jonatan2aocubo)

    i solved with this function

    add_filter(‘wpcf7_’.’produtos_cotacao’.’_get_posts’, ‘filter_dropdown_posts’);

    function filter_dropdown_posts($post_args)
    {
    $post_args[‘categoria_taxonomy’] = ‘pochetes’;
    return $post_args;
    }

    Plugin Author Markus Wiesenhofer

    (@markusfroehlich)

    Perfekt this was the right way ??

    Best regards
    Markus

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Filter based on’ is closed to new replies.