Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1041691

    I want a certain set of buttons to only show if a user is logged in and their role is “subscriber.” The page is http://schoolofbookkeeping.com/webinars/ and the button says “Register for this event.” Any idea how to make this happen?

    #1042081

    Darshana
    Moderator

    Hi there,

    Thanks for writing in! You can use our protected shortcode to hide certain content from site visitors who are not logged in. Follow the example below.

    [x_protect][x_button type="real" shape="square" size="jumbo" href="#example" title="Example"]Square Button[/x_button][/x_protect]

    Hope that helps.

    #1042147

    Does this provide a login URL to let them know something is hiding? I used CSS to hide it and its working but there’s no way to let the user know to login to see the buttons.

    #1042148

    I tried this and it did provide a login but then redirected to wp-login.php after entering subscriber data.

    #1042805

    Rupok
    Member

    Hi there,

    Thanks for updating. Yes the [x_protect] shortcode will ask the user to login to see the content. So I guess the CSS solution is what you want here. But I am not sure if we could track the status “subscriber” for the user, “logged in” could be tracked I guess. You can share your credentials for a subscriber account so that we can have a look.

    Cheers!