AngelEyes
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: add_image_size not working on all imageshmm thats unfortunate. The website isn’t completely deployed yet. it is just being populated by the client and unfortunately cant be made public. Anyway, I’m thinking that maybe the images they tried to upload were TOO big, or had some weird encryption or something. I’m just going to have them scale them down and resave as jpeg… hopefully that will resolving things.
Forum: Fixing WordPress
In reply to: add_image_size not working on all imagesthanks RachelBaker but thats not the problem. Like I said, I added all the image sizes and then handed the theme over to the client so I havent been adding image sizes since They’ve just been adding images, some have been getting formatted properly and some havent been.
Forum: Fixing WordPress
In reply to: Get the post ID from an attachment IDjust what I needed, thanks esmi.
Forum: Localhost Installs
In reply to: Warning: sprintf() wp-admin/includes/post.php on line 1148Redownloaded wordpress 3.3.1 and reinstalled again, still getting the error.
I’m guessing its something on my end. I was just working on a rails site this past week. I dont know if any of the configs with rails could have somehow effected my MAMP. Seems unlikely but im not sure what the deal is here..
Forum: Fixing WordPress
In reply to: Featured Image errorI tried going to uploads->reinstall 3.3.1 and i’m still getting the error.. Tried switching themes and still errors
Forum: Fixing WordPress
In reply to: Featured Image errorinterestingly I just got this error as well.
Running locally on MAMP wordpress 3.3.1. Fresh download, fresh database, I’ve developed dozens of wordpress sites without ever getting this error.
weird
Forum: Hacks
In reply to: A loop based on meta datanot sure if you’ve seen this, but custom field queries are built into WP_Query and are relatively straight forward. I just used this type of query on a recent website to find a couple “related posts” by posts with the same “author” meta key /value.
A note:
the only way I was able to get the query to work was the more extended version that is used for multiple key pairs, even though I was only using one key pair$args = array( 'post_type' => 'product', 'meta_query' => array( array( 'key' => 'color', 'value' => 'blue', 'compare' => 'NOT LIKE' ), array( 'key' => 'price', 'value' => array( 20, 100 ), 'type' => 'numeric', 'compare' => 'BETWEEN' ) ) ); $query = new WP_Query( $args );http://codex.ww.wp.xz.cn/Class_Reference/WP_Query#Custom_Field_Parameters
Forum: Fixing WordPress
In reply to: Rename custom post types with many posts and save associated postsFor what its worth I’ve settled on moving each post manually with this plugin-
http://ww.wp.xz.cn/extend/plugins/post-type-switcher/I guess i could have done some sort of SQL but I dont really feel comfortable working in that way.
Forum: Fixing WordPress
In reply to: Rename custom post types with many posts and save associated postsmaybe this is a beyond the codex (WP-advanced) topic?
Forum: Fixing WordPress
In reply to: Rename custom post types with many posts and save associated postsAre posts deleted when they are in the trash? is there a way to move all the posts to the trash, rename the custom post and then move them back?
Forum: Fixing WordPress
In reply to: Members can write news but before publishing it should be confirmedYou could just have all your members save the posts as drafts and then you could go through and publish later.
OR- better-
Super Admin – Someone with access to the blog network administration features controlling the entire network (See Create a Network).
Administrator – Somebody who has access to all the administration features
Editor – Somebody who can publish and manage posts and pages as well as manage other users’ posts, etc.
Author – Somebody who can publish and manage their own posts
Contributor – Somebody who can write and manage their posts but not publish them
Subscriber – Somebody who can only manage their profileForum: Fixing WordPress
In reply to: WP_Query by Meta Key & Valuewell… i seem to have had some luck with this format-
$args = array( 'post_type' => 'any', 'meta_query' => array( array( 'key' => 'Affiliate', 'value' => $affiliate, ) ) );it seems like wordpress wanted the query nested inside ‘meta_query’ even though it wasn’t multiple meta values. I think this contradicts what is inside the codex. Anyways this works!
Forum: Fixing WordPress
In reply to: While loop in Foreach LoopFigured it out. Had to add the post type to the query.
Forum: Fixing WordPress
In reply to: While loop in Foreach LoopAlso, I should note that I did a print_r($the_query); and it returned all the stuff you would expect, so it seems to be specifically the while loop that isn’t working for some reason.
Its also not an issue with my custom field, because I tried echoing out some random text inside the loop and that didnt work.
Forum: Themes and Templates
In reply to: Differences between WP_Query, get_posts, and Query_poststhis is great. thanks.