• Resolved webcart

    (@webcart)


    Hi
    I have read your replies for the “problem” of visible content on search
    but could not understand your reply.
    Here it is for anyone who missed:

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

    When I put this code in functions.php there is an error so obiously I did not
    understand what to change in this code.
    I would appreciate your explantion.

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

    (@intoxstudio)

    Apologies for the delayed response here.

    The snippet should go into the template that displays search results, e.g. search.php

    For each item, you can then decide whether or not to display it based on the level.

    I hope this helps!

Viewing 1 replies (of 1 total)

The topic ‘Visible content on search’ is closed to new replies.