My favorites | Sign in
Project Home Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 428: Image / Media fields should include link to edit the image record
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  fireproofsocks
Closed:  Dec 2012


Sign in to add a comment
 
Reported by mr.nicol...@gmail.com, Nov 15, 2012
What functionality do you want to see?

Custom Field Image (titles and descriptions)

Do you have examples of similar functionality on other sites or in other
plugins? (Please share URLs below)

Please provide any additional information below.

I'm using the custom field images to display a custom post type gallery on the frontpage I would like to add image titles to the images but when I click the image in the custom field it opens in thickbox with no options for title or description. Its a mutiple list of images being placed out in an array

Is there a way to enable title and descriptions to custom field images?
Nov 15, 2012
Project Member #1 ever...@fireproofsocks.com
Keep in mind that the image field stores only references: all the image data is kept with the image record, under the "Media" menu.  If you want to edit that data, you would need to find the image record under the "Media" menu.

I see what you mean though: it would be helpful to have a link that would take you directly to the image record so you could edit its attributes.  I'm changing the issue name to reflect that.
Summary: Image / Media fields should include link to edit the image record
Status: Accepted
Nov 15, 2012
#2 mr.nicol...@gmail.com
I managed to solved it, and yes I was placing the data via the media menu here is my final code...


<?php $loop = new WP_Query(array('post_type' => 'billboard', 'posts_per_page' => -1, 'orderby'=> 'ASC')); 		?>
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>

<h1 class="title"><?php the_title(); ?></h1>

<section class="container">

<ul id="thumbs" class="thumbs" style="background:transparent url(<?php $image_id = get_post_thumbnail_id();
$image_url = wp_get_attachment_image_src($image_id,'large', true);
echo $image_url[0];  ?>);">

<?php 
$images = get_custom_field('billboard_images:to_array','get_post');
foreach ($images as $img) {
?>
<li>
<a >
<img src="<?php print $img['guid']; ?>" height="100" width="100" />
<div class="description">
<h3><?php print $img['post_title']; ?> </h3>
<p><?php print $img['post_excerpt']; ?> </p>
</div>
</a>
</li>
<?
}
?>
</ul>
</section>
<?php endwhile; // end of the loop. ?>

My website isn't live but I used it to achieve this http://tympanus.net/Tutorials/ProximityEffect/index2.html

The featured thumbnail i use it as background and the list of images I use as the thumbnails effects and rollover titles and rescripts.

So now I have my billboard on the homepage as i wanted, thanks a lot for the plugin. When i start working again I will surely make a donation.

I have another slider I'm making now, do you think I can create different image dimensions for each image row I output in a CPT

Nov 15, 2012
Project Member #3 ever...@fireproofsocks.com
Ah, you're just worried about formatting.  There are lots of examples in the wiki for that.  Re different dimensions, I've found the built-in WP functions to be unreliable.  You can pass the image size arguments to various WP functions or to the CCTM wrapper-functions.  Refer to the docs for examples.
Dec 4, 2012
Project Member #4 ever...@fireproofsocks.com
I added "edit" links to the tpls for images and media fields.  
Committed revision 634220.
Status: Fixed
Dec 4, 2012
#5 mr.nicol...@gmail.com
How do you pass the media links to the images? The links are separate from the full image path links?
Dec 4, 2012
Project Member #6 ever...@fireproofsocks.com
Not sure what you mean... you don't pass links to images.  For basic "how do I" questions, please post in the forum.
Sign in to add a comment

Powered by Google Project Hosting