left_coaster
Forum Replies Created
-
Forum: Plugins
In reply to: permalink to custom post type gives me 404 errorJust try turning permalinks back on. Each time you add a custom post type the .htaccess file needs to be rewritten or something. Just visiting the permalinks page seems to fix the 404 for new custom post types. Meaning if you had just looked at the permalinks page without disabling them, your custom post type would have just started working.
There are a couple notes about this hidden away in some of the many blog posts about custom post types. I had the same troubles and then spent a few hours searching for the answer too. Hope this saves you some time ??
Forum: Fixing WordPress
In reply to: Ouput URLs for thumb, medium and large imagesYeah I was looking for the same thing and the wp_get_attachment_image_src() function did the trick. I’m using WP 2.9 beta right now and wanted to display the post image as the background to a <div> with my post title in it.
<?php if ( has_post_image() ) { $image_id = get_post_image_id(); $post_image_data = wp_get_attachment_image_src( $image_id, $size='medium' ); ?> <div id="listing-image" style="background:transparent url(<?php echo $post_image_data[0]; ?>) no-repeat scroll 0 0;height:<?php echo $post_image_data[2]; ?>px;"> <h2><?php the_title(); ?></h2> </div><?php } ?>
Works great! Thanks for the pointer ??
Forum: Requests and Feedback
In reply to: Arbitrary File Upload Vulnerability / Exploit?Yeah, I’ve got the same thing happening on my install as well. I don’t think it’s related to your computer specifically but perhaps WP is sharing links from other WP installs that point to https://localhost/whatever/ then shares them on every machine that has https://localhost as their domain.
Just a guess. Don’t think it’s something to be worried about from a security standpoint but I think that some people may be concerned about the privacy issues involved. Perhaps they are using a local install of WP to keep a private diary or something…
Aaron