Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Along the same lines as question 1, is there a way to have this ignore certain post categories?

    I have tried every single one of those fixes.

    The main problem is that they actually seem to work. For instance, I put in this one a couple of days ago:

    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>

    Uploads worked fine. Now today, they are no longer working. This has happened with at least half of the fixes I have tried (and all of them that have to do with .htaccess). The other half just didn’t do anything.

    The only one I haven’t tried – and have been avoiding – is the no flash uploader plugin. It seems silly to me that I have to turn off half of a feature of 2.5 just to get the rest of it to work.

    What is worse is that it appears to me that the WP folks who can fix it aren’t doing anything to fix it. Any time someone complains about this problem, people point to the same post you pointed me to, but never say “its being worked on” or point to the ticket in the bug tracker.

    From what I am seeing on this message board, this is a consistent, persistent problem across multiple installs on multiple architectures using multiple browsers. It is a real problem that tweaking .htaccess or turning off (or on) plugins is only putting a band aid on.

    I have run into the same error, but only using Firefox. When in IE, I get a completely different error, but the image actually successfully uploads.

    Unfortunately, I cannot manipulate that file in IE, but if I switch back over to FF, it sees the image and is perfectly content to mess with it.

    This tells me that it is definitely a WP2.5 issue, and not something with folder permissions, file sizes, or config.

    I have also seen many people have this issue, but I have yet to see a solution presented that works (other than the one I use right now) either officially or unofficially.

    Forum: Fixing WordPress
    In reply to: Gallery Navigation

    If I understand your questions correctly, I believe it can be used to do both.

    If you put it in your index.php file, it shows the first picture of that post’s gallery, with a link to the full post, which does show all of the pictures in that particular gallery. Your other posts will continue to show as normal.

    If you put it in your archive.php file, it will do basically the same thing, but because it is only showing from one category, it is essentially creating a gallery of galleries

    Both of these are assuming you are marking all of your gallery posts with gallery specific category.

    Forum: Fixing WordPress
    In reply to: Gallery Navigation

    Getting somewhere concerning showing the first image of a gallery but linking to the gallery vs the image itself.

    I am using a modified version of the code found on the get_posts page. This code is located in my index.php file. Code is below:

    <?php
    if(in_category(14)) {
    $args = array(
    	'post_type' => 'attachment',
    	'numberposts' => 1,
    	'order' => 'ASC',
    	'post_status' => null,
    	'post_parent' => $post->ID
    	);
    $attachments = get_posts($args);
    if ($attachments) {
    	foreach ($attachments as $attachment) {
    		$thePic = wp_get_attachment_image($attachment->ID);
    	}
    }
    ?>
    <p><a href="<?php the_permalink(); ?>"><?php echo $thePic; ?></a></p>
    <?php } else {
    the_content('Read the rest of this entry &raquo;');
    } ?>

    For reference, category 14 is my “photos” category. I can get the count by using a similar method. Code is below:

    <?php
    $args = array(
    	'post_type' => 'attachment',
    	'numberposts' => null,
    	'post_status' => null,
    	'post_parent' => $post->ID
    	);
    $attachments = get_posts($args);
    if ($attachments) {
    	$picCount = count($attachments);
    }
    ?>
    <p>There are <?php echo $picCount; ?> pictures in this gallery.</p>

    Finally, I put general information about the gallery in the excerpt tag, and use the template tag the_excerpt to display it.

    Hope this helps some folks.

    Forum: Fixing WordPress
    In reply to: Gallery Navigation

    I almost have it working using the stock install. My problem is that I cannot get wp_get_attachment_image to work on my index page, which means I cannot get the image to show up. I really feel if I can figure out why it won’t work (or is working on image.php) then I will have it sorted.

    Once I get it worked out, I’ll post my results here. Hopefully someone will solve it before me, since I am getting pretty frustrated at this point.

    Anyone know why wp_get_attachment_image would work on image.php but not index.php? I have tried passing the post ID as both a variable and the actual post number, but it refuses to work.

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