Problem with conditional
-
Hi there!
I have this function to show some contents only to loged users:
add_shortcode( ‘miembro’, ‘shortcode_para_miembros’ );
function shortcode_para_miembros( $atts, $content = null ) {
if ( is_user_logged_in() && !is_null( $content ) && !is_feed() )
return $content;
return ”;
}The problem is when i use this filter on the front end, the shortcode for [wppb-login] or [wppb-edit-profile] doesn´t work, and shown as shortcode in the front-end Example:
[miembro] Form for loged users: [wppb-edit-profile] [/miembro]
When i put this in the front end i still get the shortcode instead of the profile form.
Can u help me?
Regards!
The topic ‘Problem with conditional’ is closed to new replies.