It permits to hide or show part of the content of posts or pages to users that are logged or not.
It’s also possibile to select the role(s) or the username(s) of logged users.
The content to be hidden or displayed must be included in a shortcode tagged as ‘soshsc‘.
The info page is available under the Tools menu.
It’s compatible with Elementor from the version 2.0.
The widget is in the general category.
hides content to guests
hides content to legged users
displays content to guests
displays content to legged users
enables the action (show/hide) only to users with the ‘Subscriber’ role
enables the action (show/hide) only to users with the ‘Subscriber’ or ‘Editor’ role
enables the action (show/hide) only to the user with username ‘foo’
enables the action (show/hide) only to the users with username ‘foo’ or ‘bar’
Hide content to unlogged users:
[soshsc hide=”guest”]This content is hidden only to users not logged.[/soshsc]
Hide content to logged users:
[soshsc hide=”logged”]This content is hidden only to logged users.[/soshsc]
Show content only to unlogged users:
[soshsc show=”guest”]This content is displayed only to users not logged.[/soshsc]
Show content only to logged users:
[soshsc show=”logged” role=”administrator”]This content is displayed only to administrators.[/soshsc]
Contributors & Developers
“Hide/Show Post/Page Content” is open source software. The following people have contributed to this plugin.Contributors
- Added shortcode parameters to select logged users by role or username
- Minor changes
- Configured the localization settings
- Added the italian translation
Implemented the compatibility with Elementor 2.x