Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter staud

    (@staud)

    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.

    Thread Starter staud

    (@staud)

    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.

    Thread Starter staud

    (@staud)

    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”.

    Thread Starter staud

    (@staud)

    Update: I found out that the theme has the desired functionality by default. See here, 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.

    Thread Starter staud

    (@staud)

    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;
    Thread Starter staud

    (@staud)

    That worked! Thank you very much!!

    Thread Starter staud

    (@staud)

    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)