Example #1
0
                <dd><?php 
echo $user['email'];
?>
</dd>
                <dt>Rank</dt>
                <dd><?php 
echo $user['rank'];
?>
</dd>
            </dl>
        </div>
        <div class="col-sm-8">
            <table class="table table-bordered table-striped">
                <thead><th>Title</th><th>State</th><th>Date Created</th></thead>
                <?php 
$pages = get_user_pages($user['id']);
while ($page = mysqli_fetch_array($pages)) {
    ?>
                            <tr><td><a href="viewpage.php?id=<?php 
    echo $page['id'];
    ?>
"><?php 
    echo $page['title'];
    ?>
</a></td><td><?php 
    echo $page['state'];
    ?>
</td><td><?php 
    echo $page['date_created'];
    ?>
</td></tr>
Example #2
0
<?php

echo '<h2>Your recent posts</h2>';
get_user_posts();
echo '<h2>Static pages</h2>';
get_user_pages();