• Resolved 7daytheory

    (@7daytheory)


    I have a news alert in my sidebar I added just for people who are logged in.

    <!--sidebar-->
    [wp-members status="in"]
    
    				<div id="sidebar">
    			<div class="recentNews">
    <marquee id="marqueeS" class="marqueeScroll" scrollamount="1" align="top" direction="up" height="100%" onmouseover="this.stop();" onmouseout="this.start();" loop="100">
    				<?php
    while($row = mysql_fetch_array($alertResults)){
    echo"
    				<p>".$row['alert_content']."<br></p>
    ";
    }
    ?>
    			</marquee>[/wp-members]

    It does not work, it just shows the [wp-members status=”in”] at the top..

    Can this not work in the sidebar or?

    http://wordpress.org/plugins/wp-members/

    [Moderator Note: No bumping. If it’s that urgent, consider hiring someone.]

Viewing 1 replies (of 1 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    This looks like the your sidebar.php. You can’t put shortcodes directly into the file like that – they won’t parse (well… actually some can, but not the way you have it, and not this particular one). If you are going to do something like this directly in a php file, you could use WP’s is_user_logged_in function

Viewing 1 replies (of 1 total)
  • The topic ‘Showing Content to Logged in Members’ is closed to new replies.