We are currently on vacation until 21st July 2025, ticket responses maybe be longer than normal during this period, sorry for any inconvenience.

How Insert value into template?

Closed

Import WP Pro Updated 3 years ago 2 Replies

Sergey asked 3 years 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

3 years 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

3 years 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/