• Resolved otallu

    (@otallu)


    HI,

    Can we have a new TEXT control “Tag” for grid options in “posts grid” widget? So, users would be able to show posts which contains a specific tag.

    I was able to achieve this by editing posts-grid.php file (added tag after Category).

    $this->add_control(
        'grid_post_tag',
        [
            'type'    => \Elementor\Controls_Manager::TEXT,
            'label'   => '<i class="fa fa-paint-brush"></i> ' . __( 'Tag', 'elementor-addon-widgets' ),
        ]
    );

    and

    if ( !empty( $settings['grid_post_tag'])){
        $tag = get_term_by('name', $settings['grid_post_tag'], 'post_tag');
        $args['tag'] = $tag->slug;
    }

    Thats working fine. the problem is I have to do this every time after new update. So can this option be added in new official update?

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Support Vishakha Patel

    (@vishakha)

    Hey There,

    Thanks for providing the suggestion. I’ll suggest it to developers. However, we cannot assure that we will include it into the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Show posts by “Tag” in Posts Grid’ is closed to new replies.