• Hi,

    I am currently using the following code to output the last months popular post links…

    echo do_shortcode("[slimstat f='popular' w='resource' lf='content_type equals post&&&limit_results equals 10' lc='post_link']");

    But I am noticing that feed urls and forwarding/redirect urls are appearing in the results.

    So for example:

    h**p://www.website.com/blog/article/feed/

    h**p://www.website.com/blog/old_version_of_article_url/

    and its redirected url

    h**p://www.website.com/blog/new_version_of_article_url/

    Is there anyway to convert the results into an array and filter the results before output?

    https://wordpress.org/plugins/wp-slimstat-shortcodes/

  • The topic ‘Exclude feed and redirected urls from popular posts query.’ is closed to new replies.