• Resolved pd5dj

    (@erazotropa)


    Hi,

    I have added a page that should be visible to logged in users only.
    This works.

    But when using the main search button, some content will be visible from this page in the results.

    How to fix this?

    Kind regards
    Bjorn

Viewing 1 replies (of 1 total)
  • Plugin Author Joachim Jensen

    (@intoxstudio)

    Unfortunately Restrict User Access does currently not support hiding restricted items from archive pages, search results, widgets or custom lists. It is on the roadmap to support this.

    For now, you could use the API to show/hide content in the search results template file.

    if(rua_has_user_level(wp_get_current_user(),$level_id)) {
       //show content
    } else {
       //hide content
    }

    I hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Created restricted page, but content still visible when using search’ is closed to new replies.