• Hi,
    I started using view shortcode and noticed that wrong data is displayed. I looked into views_shortcode function and there is this line
    $link_uri = substr( $url_data['path'] . ( isset( $url_data['query'] ) ? ( '?' . $url_data['query'] ) : '' ), -20 );
    Why substr is used here? I have much longer slugs than 20 and endings overlap with other links.

    https://ww.wp.xz.cn/plugins/google-analytics-top-posts-widget/

The topic ‘Views shortcode with long slugs’ is closed to new replies.