Beispiel #1
0
    echo '<div class="authorName">';
    echo "<a href=\"" . get_bloginfo('url') . "/?author=";
    echo $user_info->ID;
    echo "\">" . $user_info->display_name;
    echo "</a>";
    echo "</div>";
    echo "<p class='nickname'><em>" . $user_info->nickname;
    echo "</em></p>";
    echo "</li>\n";
}
?>
	         </ul>
		</div>	
		<div class="clear"></div>
		<?php 
$pastContributers = get_users_with_role('Goodbye');
?>
		<div>
			<h2 class="staffHeadline contrib">Past Contributors</h2>
			<ul class="pastContributors">
				
	         <?php 
foreach ($pastContributers as $past_id) {
    $user_info = get_userdata($past_id);
    echo "<li>";
    echo '<div class="authorName">';
    echo "<a href=\"" . get_bloginfo('url') . "/?author=";
    echo $user_info->ID;
    echo "\">" . $user_info->display_name;
    echo "</a>";
    echo "</div>";
Beispiel #2
0
	<!--The section for the little stories-->
<div id= 'post-wrapper'>
   <?php 
/* Uses default query */
/*I guess this queries all the category ID's and picks 6 to display? */
$featured = get_cat_ID("Featured");
$letters = get_cat_ID("Letters");
$iCaughtYou = get_cat_ID("I Caught You");
$events = get_cat_ID("Events");
$thisWeek = get_cat_ID("This Week at RISD");
$comics = get_cat_ID("Comics");
$weRecommend = get_cat_ID("We Recommend");
$studentGallery = get_cat_ID("Student Gallery");
$thisWeek = get_cat_ID("This Week At RISD");
$adviceUsers = get_users_with_role('advice_columnist');
$facultyquotes = get_cat_ID("Faculty Quotes");
$contests = get_cat_ID("Contests");
$breakingnews = get_cat_ID("Breaking News");
$adviceUsersString = mk_negative_user_ids($adviceUsers);
query_posts(array('author' => $adviceUsersString, 'category__not_in' => array($featured, $letters, $iCaughtYou, $events, $studentGallery, $weRecommend, $comics, $facultyquotes, $contests, $breakingnews), 'showposts' => 6));
$index = 0;
?>

 <?php 
//Regular expression to hide images within posts
add_filter('the_content', 'wpi_image_content_filter', 11);
function wpi_image_content_filter($content)
{
    $content = preg_replace("/<img.*?>/i", "", $content);
    $content = preg_replace("/<object.*?>.*?<\\/object.*?>/i", "", $content);