Title: staud's Replies | WordPress.org

---

# staud

  [  ](https://wordpress.org/support/users/staud/)

 *   [Profile](https://wordpress.org/support/users/staud/)
 *   [Topics Started](https://wordpress.org/support/users/staud/topics/)
 *   [Replies Created](https://wordpress.org/support/users/staud/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/staud/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/staud/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/staud/engagements/)
 *   [Favorites](https://wordpress.org/support/users/staud/favorites/)

 Search replies:

## Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[DMSGuestbook] 60 000 spam entries and no possibility to delete them](https://wordpress.org/support/topic/60-000-spam-entries-and-no-possibility-to-delete-them/)
 *  Thread Starter [staud](https://wordpress.org/support/users/staud/)
 * (@staud)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/60-000-spam-entries-and-no-possibility-to-delete-them/#post-3410322)
 * Thank you very much for your kind offer!
    I deleted the 60k spam entries by myself.
   I’m glad that it didn’t take more than half an hour. Most of the entries had 
   the same fake email adress, so I could delete many entries together. After half
   of the delete work (30k entries left) I checked whether the entries section in
   the WP backend was back. It wasn’t. But at the end, when I was done, it reappeared–
   great. I hope that with the mathematic anti-spam measure and the anti spam plugin
   webvitaly suggested I won’t encounter any more spam in the future.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[DMSGuestbook] 60 000 spam entries and no possibility to delete them](https://wordpress.org/support/topic/60-000-spam-entries-and-no-possibility-to-delete-them/)
 *  Thread Starter [staud](https://wordpress.org/support/users/staud/)
 * (@staud)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/60-000-spam-entries-and-no-possibility-to-delete-them/#post-3410284)
 * Yes. It’s activated on the Guestbook page of my blog. The guestbook is showing
   properly on the blog and entering entries works, too. It’s just the entries section
   of the backend that seems to be broken.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[DMSGuestbook] 60 000 spam entries and no possibility to delete them](https://wordpress.org/support/topic/60-000-spam-entries-and-no-possibility-to-delete-them/)
 *  Thread Starter [staud](https://wordpress.org/support/users/staud/)
 * (@staud)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/60-000-spam-entries-and-no-possibility-to-delete-them/#post-3410233)
 * Thanks everybody. I’ll give Anti-spam plugin a try in the future.
    Do you have
   any suggestions why the Entries moderation section in the WP backend is empty?
   PS @ DanielSchurter: There’s also nothing listed under “Spam”.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Entry image isn't linked to the entry (only the entry title)](https://wordpress.org/support/topic/entry-image-isnt-linked-to-the-entry-only-the-entry-title/)
 *  Thread Starter [staud](https://wordpress.org/support/users/staud/)
 * (@staud)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/entry-image-isnt-linked-to-the-entry-only-the-entry-title/#post-3131675)
 * Update: I found out that the theme has the desired functionality by default. 
   [See here,](http://demo.onedesigns.com/pinboard/#access) especially the entries
   from “Sunset Sky” onwards. These are posts with the template “image-post” (in
   contrary to the first two posts, where the image opens in a lightbox).
 * Oh dear, I’m totally confused. WP is far too complicated for me…
    Can somebody
   help me?
 * I’ll post this question at the theme support forum, too.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Entry image isn't linked to the entry (only the entry title)](https://wordpress.org/support/topic/entry-image-isnt-linked-to-the-entry-only-the-entry-title/)
 *  Thread Starter [staud](https://wordpress.org/support/users/staud/)
 * (@staud)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/entry-image-isnt-linked-to-the-entry-only-the-entry-title/#post-3131661)
 * Thanks a lot!
    I looked for that thing in the functions.php of the Pinboard theme.
   But there was quite a lot of code that has obviously to do with it. Could you
   push me to the right thing to change? Unfortunately I’m a total PHP noob.
 *     ```
       if ( ! function_exists( 'pinboard_post_image' ) ) :
       /**
        * Show the last image attached to the current post
        *
        * Used in image post formats
        * Images attached to image posts should not appear in the post's content
        * to avoid duplicate display of the same content
        *
        * @uses get_posts() To retrieve attached image
        *
        * @since Pinboard 1.0
        */
       function pinboard_post_image() {
       	if( has_post_thumbnail() ) : ?>
       		<figure>
       			<a href="<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); echo $image[0] ?>" title="<?php the_title_attribute(); ?>" class="colorbox" rel="attachment">
       				<?php the_post_thumbnail( ( pinboard_is_teaser() ? 'teaser-thumb' : 'image-thumb' ) ); ?>
       			</a>
       		</figure>
       	<?php else :
       		// Retrieve the last image attached to the post
       		$args = array(
       			'numberposts' => 1,
       			'post_type' => 'attachment',
       			'post_mime_type' => 'image',
       			'post_parent' => get_the_ID()
       		);
       		$attachments = get_posts( $args );
       		if( count( $attachments ) ) {
       			$attachment = $attachments[0];
       			if( isset( $attachment ) && ! post_password_required() ) :
       				$image = wp_get_attachment_image_src( $attachment->ID, 'full' ); ?>
       				<figure>
       					<a href="<?php echo $image[0]; ?>" title="<?php the_title_attribute(); ?>" class="colorbox"  rel="attachment">
       						<?php echo wp_get_attachment_image( $attachment->ID, 'image-thumb' ); ?>
       					</a>
       				</figure>
       			<?php endif;
       		} elseif( false !== pinboard_get_first_image() ) {
       			if( ! post_password_required() ) :
       				$image = pinboard_get_first_image();
       				if( false === $image[1] )
       					$image[1] = 695;
       				if( false === $image[2] )
       					$image[2] = 430;
       				$attachment = get_post( get_the_ID() ); ?>
       				<figure>
       					<a href="<?php echo $image[0]; ?>" title="<?php the_title_attribute(); ?>" class="colorbox"  rel="attachment">
       						<img src="<?php echo $image[0]; ?>" alt="<?php the_title_attribute(); ?>" width="<?php echo $image[1]; ?>" height="<?php echo $image[2]; ?>" />
       					</a>
       				</figure>
       			<?php endif;
       		} else {
       			the_content();
       		}
       	endif;
       }
       endif;
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Show only one category in specific wp-query code](https://wordpress.org/support/topic/show-only-one-category-in-specific-wp-query-code/)
 *  Thread Starter [staud](https://wordpress.org/support/users/staud/)
 * (@staud)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/show-only-one-category-in-specific-wp-query-code/#post-3124057)
 * That worked! Thank you very much!!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Show only one category in specific wp-query code](https://wordpress.org/support/topic/show-only-one-category-in-specific-wp-query-code/)
 *  Thread Starter [staud](https://wordpress.org/support/users/staud/)
 * (@staud)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/show-only-one-category-in-specific-wp-query-code/#post-3124008)
 * Do you mean this? It comes directly before the code quoted in the opening post.
   `
   <?php $args = array( 'posts_per_page' => get_option( 'posts_per_page' ), 'paged'
   => max( 1, get_query_var( 'paged' ) ) ); ?>`
 * No, I haven’t read “a page of posts”. Unfortunately I don’t understand PHP the
   least, so every code that is different from what I see is immediately confusing
   for me.

Viewing 7 replies - 1 through 7 (of 7 total)