-
Notifications
You must be signed in to change notification settings - Fork 18
Show images with Url from custom field
Sometime you need to show an image from custom field. Also may you need to set an url to that image. In this tutorial, we are going to add custom field for image and url and show them in our table. We need ‘Advanced Custom Fields(Acf)’ plugin for this.
1. Add custom field for image
We add a custom field for image using Acf. Make sure that the field type is ‘Image’
2. Add custom field for url
Now we need to add a field for url. Here your custom field name has to be ‘image_url’ , and field type ‘Url’
3. Take a look
If you did everything right than you should have two custom field ‘Image’ and ‘Url’ in your product add page.
4. Upload image and set Url
Now upload image and set url
5. Add a column in table
Now we need to add a new column for showing that image
6. Check column
Column should checked by default, if not check it
7. Result
You can see the result in the table
Still Need Help? Contact over Support
- wpto_admin_tab_array
- wpto_save_tab_array
- wpto_form_tab_validation_[tab_name]
- wpt_table_show_top
- wpto_column_arr
- wpto_column_settings
- wpto_enabled_column_array
- wpto_thumbs_size
- wpto_table_show
- woocommerce_add_to_cart_validation
- woocommerce_attribute
- woocommerce_loop_add_to_cart_link
- woocommerce_quantity_input_max
- woocommerce_quantity_input_min
- wpo_row_manager_loc
- wpt_action_variation
- wpt_admin_form_top_links
- wpt_menu_capability
- wpt_supported_terms
- wpto_action_start_table
- wpto_action_table_wrapper_top
- wpto_add_to_cart_text
- wpto_add_to_cart_url
- wpto_additional_variable
- wpto_addnew_col_arr
- wpto_admin_tab_file_loc
- wpto_admin_tab_file_loc_{$tab}
- wpto_admin_tab_folder_dir
- wpto_ajax_form_submit
- wpto_before_row
- wpto_blank_centent
- wpto_blank_type_column
- wpto_blank_type_column_{$keyword}
- wpto_checkbox_validation
- wpto_column_bottom
- wpto_column_top
- wpto_column_type
- wpto_configuration_settings
- wpto_curent_deteted_device
- wpto_default_column_arr
- wpto_default_configure
- wpto_default_enable_column_arr
- wpto_default_width_freeze_col
- wpto_defult_file_loc
- wpto_element_bottom
- wpto_element_top
- wpto_extra_items_arr
- wpto_form_tab_validation_{$tab}
- wpto_get_config_value
- wpto_inside_checked_item_arr
- wpto_inside_item_arr
- wpto_inside_item_arr_{$keyword}
- updating__
- updating__
- updating__
- updating__
- updating__