• Resolved Tuh

    (@tuh)


    Hello,

    I am trying to display a post based slider with some custom data on it.
    I followed this link http://docs.averta.net/display/MSWPDEVDOC/Post+Slider and it works fine but I can’t figure how to add more than one tag in the

    function my_masterslider_post_slider_tags_list( $tags ) {

    $tags[] = array(
    ‘name’ => ‘project_link’,
    ‘label’ => __( ‘Project Link’, ‘masterslider’ ),
    ‘type’ => ‘portfolio’
    );
    return $tags;
    }

    What should I write if I want to add a second tag name project_custom_tag?

    Thanks a lot for your help!

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

    (@tuh)

    Got it, sorry for the post but in case someone ask the same question, here is the fix:

    $tags[] = array(

    array(
    ‘name’ => ‘project_link’,
    ‘label’ => __( ‘Project Link’, ‘masterslider’ ),
    ‘type’ => ‘event’
    ),
    array(
    ‘name’ => ‘project_custom_tag’,
    ‘label’ => __( ‘Project Custom Tag’, ‘masterslider’ ),
    ‘type’ => ‘event’
    )
    );
    return $tags;
    }

    Plugin Author averta

    (@averta)

    Hi
    Thanks for sharing your experience with others and we are glad you solved your issue.

    Kind Regards
    Averta

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