Support

Account

Forum Replies Created

  • Hi and thank you – that totally did the trick. I had looked at the code for so long I was just missing that one tiny thing, yikes.

  • To add to my original messages – this is still an issue, and happens intermittently regardless of user role. I have several admins who will be able to edit images, but then suddenly can’t, unless they upload a new image. And it doesn’t even matter if the image upload is successful – the upload can stall out, and for whatever reason, once they’ve tried that, then editing capabilities are restored.

    I’m trying to recreate this bug on demand, but can’t forcibly do anything to make it happen – it’s simply, suddenly, editing capability disappears altogether.

    Unfortunately it’s making me look like a jerk because the client is trying to load their content (and, of course, the site is for a photography agency, so this function is key). I just keep saying “I’m working on a fix”…

    Eliot – any further ideas? Or any other info I can provide to help you out?

  • Ok one more thing about this – the new admin user that I just now added did not have the ability to edit images until AFTER that user had added an image to a gallery. Somehow adding an image allowed the user access to edit ALL images. So I’m not sure what’s going on. Bug? Or intentional?

  • Hi Elliot – thanks for your answer – Yes, I had read over that tutorial, but since the code example was basically exactly what I was looking for, I was hoping it would work easily since I’m not advanced enough in PHP to know how to implement the tutorial and take into account my CPT – “by joining the wp_postmeta table to the wp_posts table on the post_id columns.” (and yes, I googled how to join tables in sql, etc, but everything just left me with a blank page so clearly I’m not doing it correctly).

    The other factor is that I realized I need the sub_field to be checkboxes and not a single select, so that adds another layer of complexity that I don’t think I understand.

    Not sure at all what I’m missing. Sorry for being such a noob.

  • rlocke, were you able to sort this out? I’m having exactly the same issue – I’ve even changed my custom field to be a select instead of the original taxonomy I was using, but still nothing is returned. When I had it set as taxonomy, the ID didn’t return anything either. If I comment out the meta_query array, the query returns posts. I’ve checked that all my names are correct, correct spelling, nothing is doing the trick. 🙁 Any ideas?

    
    // i've got the function code here as in example, only using 'projects_%_type'
    
    $args = array(
    	'numberposts' => -1,
    	'post_type' => 'artist',
    	'meta_query' => array(
    		array(
    			'key' => 'projects_%_type',
    			'value' => 'lifestyle'
    			)
    		)
    	);
    
Viewing 5 posts - 1 through 5 (of 5 total)