Jon Christopher
Forum Replies Created
-
Thanks so much for the report, I’ll post a fix now.
Forum: Alpha/Beta/RC
In reply to: Adding plugins meta box’s to custom post typesHey everyone, just wanted to make it known that Attachments has supported additional content types for some time now, under Settings there is an area for Attachments and you can pick/choose which CPT you’d like to use.
I’ve received a number of requests for this feature and will plan on adding the feature as an option in the next release. Thanks for the feature request!
Forum: Plugins
In reply to: [Attachments] Add attachments to Custom Post TypesWhat version of the plugin are you running? Custom Post Types have been supported for some time, you can manage which post types are used on the Settings screen…
Forum: Plugins
In reply to: [Attachments] [Plugin: Attachments] JavaScript ErrorNo problem, glad you’ve got it figured out!
Forum: Plugins
In reply to: [Attachments] [Plugin: Attachments] JavaScript ErrorAny way I can log in and poke around? https://mondaybynoon.com/contact
Forum: Plugins
In reply to: [Attachments] [Plugin: Attachments] JavaScript ErrorDoes the error still occur with all other plugins deactivated?
Forum: Plugins
In reply to: [Plugin: Attachments] cleaner code indexingHi Stefan, I would suggest reaching out to a developer to help you out with the implementation. With this conversation moved beyond a question related to Attachments specifically I would ask that your request for assistance be moved to a better forum. Please feel free to contact me any time!
Forum: Plugins
In reply to: [Plugin: Attachments] cleaner code indexingHi Stefan, paging isn’t built into Attachments so you’ll need to build your own version of paging into it. I’d suggest Googling to see what you can see — good luck!
Forum: Plugins
In reply to: [Plugin: Attachments] cleaner code indexingHi Stefan,
There’s actually a bug, try this:
<a href="javascript:void(0)"><?php echo $i+1; ?><img src="<?=$attachments[$i]['location']?>" alt="<?=$attachments[$i]['title']?>" title="<?=$attachments[$i]['caption']?>" /></a>
It wasn’t set to actually echo, so that should get the value to output. Sure you could technically page it, but it’d be a bit more work on your end to set that up.
Forum: Plugins
In reply to: [Plugin: Attachments] cleaner code indexingTruth be told you’re already creating the index you’d like to use in the
for
loop. Instead of dumping out$attachments[$i]['id']
dump out$i+1
since the loop is zero based. Does that answer your question?Forum: Plugins
In reply to: [Plugin: Attachments] Problem with Swedish characters (???)Update: Version 1.1.1 fixes this issue.
Forum: Plugins
In reply to: [Plugin: Attachments] Problem with Swedish characters (???)Hi Trevald, I’ll do my best to overcome the bug and push an update out today.
Thanks for creating this thread! I’ve just updated Attachments and that fix has been put in place. Thanks!
Forum: Plugins
In reply to: WordPress Attachments Plugins – get medium size of imageYou’ll want to use wp_get_attachment_image_src with the attachment
id
you’re working withe.g.
$my_image = wp_get_attachment_image_src( $attachments[$i]['id'], 'medium' ); $my_image = $my_image[0];
$my_image will contain the URL to your medium sized image.
Hope that helps!