Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter aquagrrl

    (@aquagrrl)

    I lied, there was one plugin – jetpack. I didn’t even consider it because it is being presented as a part of wordpress. But it broke the form sure as anything. Deactivating fixed it.

    Thread Starter aquagrrl

    (@aquagrrl)

    Tried disabling and then uninstalling plugin, but it still doesn’t work. No other plugins installed.

    Thread Starter aquagrrl

    (@aquagrrl)

    Yes, I figured it out. Even though I deactivated WP-caching and removed wp-caching info from the .htaccess, the cache files were still in the cache folder. I took a guess that it was reading from there and deleted them all. Sure enough, it fixed the problem. Sorry for not responding back but it’s working now.

    Thread Starter aquagrrl

    (@aquagrrl)

    If I wanted to pay to get something like this created, anyone have any suggestions for finding a developer? Would developing a custom wordpress plugin be extremely expensive?

    I wanted to love bbpress. I love wordpress and can do so much with it that I had extremely high hopes for bbpress. But it lacked the elegance of wordpress behind the scenes, and without that, what was the point? Its just another piece of forum software, and not as flexible as others out there. You couldn’t integrate your wordpress and bbpress themes; and theming in bbpress was extremely limited because there was too much html mixed in with the actual core code. If you wanted to make a truely unique them, you had to edit files you had no business editing, and that would likely break on future upgrades. The html used was a poorly constructed hodge-podge of tables and table-less. Overall it was an entirely disappointing piece of software.

    Thread Starter aquagrrl

    (@aquagrrl)

    Figured out a solution, if anyone runs into this in the future. changed the method in which I get images to:

    $images = get_children( array('post_parent' => $post->ID, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID', 'numberposts' => 1) );
    foreach ( $images as $attachment_id => $attachment ) :
    		$img = wp_get_attachment_image_src($attachment_id, 'medium');
    	endforeach;

    I don’t know why this is better, but it doesn’t screw up the comment count. Here is the whole thing:

    <div id="content" class="narrowcolumn">
    <?php $temp_query = $wp_query; ?>
    <?php query_posts('showposts=200&orderby=date&order=DESC&cat=-16'); ?>
    <ul id="ArticleList">
    <?php while (have_posts()) : the_post(); ?>
      <li class="post" id="post-<?php the_ID(); ?>">
      	 <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
      	 <?php
    
    $images = get_children( array('post_parent' => $post->ID, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID', 'numberposts' => 1) );
    foreach ( $images as $attachment_id => $attachment ) :
    		$img = wp_get_attachment_image_src($attachment_id, 'medium');
    	endforeach;
    
    ?>
    
    	<a href="<?php the_permalink() ?>"><img src="<?php echo ($img[0]);?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" /></a>
    
        <small>By <a href="mailto:<?php the_author_email();?>"><?php the_author_firstname(); ?> <?php the_author_lastname(); ?></a></small>
         | <small>Date posted: <?php the_date(); ?></small><br />
         <span class="NumComments"> <?php comments_popup_link('<span class="CommentWord">No Comments</a>', '<span class="CommentNumber">1</span> <span class="CommentWord">Comment</a>', '<span class="CommentNumber">%</span> <span class="CommentWord">Comments</a>'); ?>
     </span>
    
    	<p><?php the_excerpt(); ?></p>
    </li>
    
          <?php endwhile; ?>
     </ul>
    	</div>

    Thread Starter aquagrrl

    (@aquagrrl)

    I’ve discovered what the problem is, but I don’t know how to fix it. The code I’m using to pull the first image from each post causes the comment count to break. I don’t know what in it is doing that, or if there is an alternate to pull the first image.
    Here is the code that is breaking things:

    <?php
    
    global $post;
    $default_size = 'medium';
    
    $attachments = get_children( array('post_parent' => $post->ID, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID', 'numberposts' => 1) );
    if($attachments) :
    	foreach($attachments as $id => $attachment) :
    		$img = wp_get_attachment_image_src($id, $default_size);
    	endforeach;
    else :
    	$img=null;
    endif;
    
    ?>

    I ran into this problem and it was a bad theme. Change out your theme if you haven’t.

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