Skip to main content
added 77 characters in body
Source Link
Cody
  • 279
  • 1
  • 6
  • 17

I am using advanced custom fieldsadvanced custom fields repeater-field to get the image url like this:

<?php the_sub_field('billede'); ?>

But I also want to get the attachment ID for the image, to be used for something else.

Is this possible? :)

I am using advanced custom fields repeater-field to get the image url like this:

<?php the_sub_field('billede'); ?>

But I also want to get the attachment ID for the image, to be used for something else.

Is this possible? :)

I am using advanced custom fields repeater-field to get the image url like this:

<?php the_sub_field('billede'); ?>

But I also want to get the attachment ID for the image, to be used for something else.

Is this possible? :)

added 6 characters in body
Source Link
kaiser
  • 50.8k
  • 27
  • 150
  • 244

I am using advanced custom fields repeater-field to get the image url like this:

 
<?php the_sub_field('billede'); ?>

But I also want to get the attachment ID for the image, to be used for something else.

Is this possible? :)

I am using advanced custom fields repeater-field to get the image url like this:

 

But I also want to get the attachment ID for the image, to be used for something else.

Is this possible? :)

I am using advanced custom fields repeater-field to get the image url like this:

<?php the_sub_field('billede'); ?>

But I also want to get the attachment ID for the image, to be used for something else.

Is this possible? :)

Source Link
Cody
  • 279
  • 1
  • 6
  • 17

How to get both image attachment ID and url

I am using advanced custom fields repeater-field to get the image url like this:

But I also want to get the attachment ID for the image, to be used for something else.

Is this possible? :)