How Insert value into template?

Closed

Import WP Pro Updated 1 year ago 2 Replies

Sergey asked 1 year ago on January 15, 2023 at 3:32 pm

Hello my frend. I have code like this: <img src=”/wp-content/uploads/2023/01/img.jpg” alt=”alt”>, How can I change the value in the alt attribute during import? Should I insert a shortcode alt=”<?php echo do_shortcode( ‘[my shortcode’ ); ?>“? Tell me please

SB

Sergey replied

1 year ago on January 15, 2023 at 7:22 pm

I solved my problem with ACF but i would not like to use ACF plugin

J

James replied Support Agent

1 year ago on January 16, 2023 at 8:46 am

Hi Sergey,

When importing images you can set the alt tag via the "Enable meta" dropdown: https://www.importwp.com/docs/importer/how-to-guides/how-to-import-wordpress-attachments-onto-a-post-type/